[charts] Box Plot query generated wrongly breaking charts #12553
Labels
#bug:regression
Bugs that are identified as regessions
P0
Priority item - Critical
viz:charts:boxplot
Related to the Boxplot chart
After the new explore redesign, the query generated for Box Plot chart is wrong, cause the chart to error out. The GROUP BY statement in missing in the query. The query should group by SERIES and by DISTRIBUTE ACROSS fields.
Expected results
Query gets composed correctly so that chart works
Actual results
Query is composed wrongly, chart errors out
Screenshots
Error:
Error: {'message': 'line 1:8: \'"entity_type"\' must be an aggregate expression or appear in GROUP BY clause', 'errorCode': 73, 'errorName': 'EXPRESSION_NOT_AGGREGATE',
Generated query resulting in error:

Same query with added GROUP BY working in SQL Lab:

How to reproduce the bug
Environment
master
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
There is no workaround. Any Box plot chart which had the SERIES or DISTRIBUTE ACROSS specified is broken.
The text was updated successfully, but these errors were encountered: