Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.37.0
-
jvm: open-jdk11
Description
String sql = "select replace(name, 'a', 'b') as name from users group by replace(name, 'a', 'b')";
when group by expression has argument name same with select list item alias, the group by argument will be expanded to select list item when sql conformance supports 'groupByAlias', so the above sql will be expanded to
String sql = "select replace(name, 'a', 'b') as name from users group by replace(replace(name, 'a', 'b'), 'a', 'b')";
this is unexpected.
Attachments
Issue Links
- Blocked
-
CALCITE-3589 SqlValidatorException when conformation is set to LENIENT
- Open
- blocks
-
CALCITE-5045 Alias within GroupingSets throws type mis-match exception
- Closed
-
CALCITE-6582 Release Calcite 1.38.0
- Closed
- links to