mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
fix(query): order by adhoc metrics should trigger group by (#13434)
* fix(query): properly select adhoc metrics in orderby * Throw error when sql is empty * Allow `metrics` to be None * Always use alias in orderby for metrics * Bump table chart version and migrate histogram to typescript * Fix Histogram without groupby * Fix Presto birth names test * Raw records mode should not aggregate
This commit is contained in:
@@ -1243,7 +1243,7 @@ def backend() -> str:
|
||||
|
||||
|
||||
def is_adhoc_metric(metric: Metric) -> bool:
|
||||
return isinstance(metric, dict)
|
||||
return isinstance(metric, dict) and "expressionType" in metric
|
||||
|
||||
|
||||
def get_metric_name(metric: Metric) -> str:
|
||||
|
||||
Reference in New Issue
Block a user