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:
Jesse Yang
2021-03-16 21:00:03 -07:00
committed by GitHub
parent 72d19b6b35
commit bd1d6acb0c
22 changed files with 8896 additions and 171 deletions

View File

@@ -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: