Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.23.0, 1.24.0
Description
Check this sql in SqlToRelConverterTest
@Test void testUdfWithStructuredReturnType() { final String sql = "SELECT deptno, tmp.r.not_null_field, tmp.r.nullable_field FROM\n" + "(SELECT deptno, ROW_FUNC() AS r from dept)tmp"; sql(sql).ok(); }
ArrayIndexOutOfBoundsException throws because the nested field got a -1 index when querying the field by simple name.
To solve the problem, for a nested field, return its parent field's monotonicity.
Attachments
Issue Links
- is related to
-
CALCITE-1518 Converting SELECT table.nested.field FROM (...) to RelNode throws ArrayIndexOutOfBoundsException
- Closed
- links to