You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql> SELECT str0 FROM calcs GROUP BY str1;
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'TDVT.calcs.str0' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
- Enabled ignored and disabled tests.
- Created #922, #917, #912, #910 and attached them to disabled tests for traceability.
- Removed irrelevant tests.
What is the bug?
Analyzer does not report a SemanticCheckException when there is a mismatch between select and group by items.
How can one reproduce the bug?
Steps to reproduce the behavior:
SELECT str0 FROM calcs GROUP BY str1;
What is the expected behavior?
A SemanticCheckException should be thrown with the message "Expression [str0] that contains non-aggregated column is not present in group by clause" as shown in the test
should_report_error_for_mismatch_between_select_and_group_by_items
in https://github.com/opensearch-project/sql/blob/2.x/sql/src/test/java/org/opensearch/sql/sql/parser/AstAggregationBuilderTest.java.What is your host/environment?
Do you have any additional context?
The test should be enabled once this has been fixed/implemented.
The text was updated successfully, but these errors were encountered: