Issues with Sort By on Table viz (for Presto) #13228
Labels
#bug:regression
Bugs that are identified as regessions
#bug
Bug report
P1
Priority item - Major
viz:charts:table
Related to the Table chart
There are a couple of issues with the way
Sort By
field is generating queries on Table charts for presto. Issues we have found so far have temporary workarounds. All issues are for table charts using the "AGGREGATE" query type.The presto error is:
Invalid reference to output projection attribute from ORDER BY aggregation
Sort By
there is noGROUP BY
in the query so it errors. Seems like we should be adding a groupby if there is no metric in the AGGREGATION section anyways(?)Sort By
metric where the column is also in the groupby, you then get an error that presto seems to have a problem with doing a MAX in the ORDER BY of an alias or column with the same name in the selectSELECT "name" AS "name"
orSELECT name
withORDER BY MAX(name)
both result in errors. The generated presto query results in the errorInvalid reference to output projection attribute from ORDER BY aggregation
Expected results
Charts should not error
Actual results
Charts show presto error
How to reproduce the bug
See above
Environment
(please complete the following information):
master
Checklist
Make sure to follow these steps before submitting your issue - thank you!
@junlincc @ktmud
The text was updated successfully, but these errors were encountered: