Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.29.0
-
jdk8
Description
@Test void testAliasWithinGroupingSets() { final String sql = "SELECT empno / 2 AS x\n" + "FROM emp\n" + "GROUP BY ROLLUP(x)"; sql(sql) .withConformance(SqlConformanceEnum.LENIENT) .ok(); }
the above test throws
Conversion to relational algebra failed to preserve datatypes: validated type: RecordType(INTEGER NOT NULL X) NOT NULL converted type: RecordType(INTEGER X) NOT NULL
The X has lost its NOT NULL constraints.
Attachments
Issue Links
- is blocked by
-
CALCITE-4512 GROUP BY expression with argument name same with SELECT field and alias causes validation error
- Resolved
- is related to
-
CALCITE-5145 CASE statement within GROUPING SETS throws type mis-match exception
- Closed
- links to