zuzana-vej opened a new issue #12553:
URL: https://github.com/apache/superset/issues/12553
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
1. Go to Explore, create chart for Box Plot
2. Select field in "SERIES" and "DISTRIBUTE ACCROSS"
3. Run chart and see error - group by wasn't added into the query statement
### Environment
master
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included
it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version
of superset.
- [x] I have checked the issue tracker for the same issue and I haven't
found one similar.
### Additional context
Add any other context about the problem here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]