Description
When accessing nested field in a STRUCTURED SqlType, sometimes RelStructuredTypeFlattener will crash with java.lang.IndexOutOfBoundsException
The test case is in SqlToRelConverterTest.java
@Test
public void testNestedColumnCrash()
The root cause is that when generate new RelNode for old RelNode, we did not consider whether the flattened field list needs null indicator.
Attachments
Issue Links
- Is contained by
-
CALCITE-3138 RelStructuredTypeFlattener doesn't restructure ROW type fields
- Closed
- relates to
-
CALCITE-2900 RelStructuredTypeFlattener generates wrong types on nested columns
- Closed