You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Will Yu (JIRA)" <ji...@apache.org> on 2019/03/30 22:26:00 UTC
[jira] [Created] (CALCITE-2963) RelStructuredTypeFlattener crashes
when accessing nested field in STRUCTURED SqlType
Will Yu created CALCITE-2963:
--------------------------------
Summary: RelStructuredTypeFlattener crashes when accessing nested field in STRUCTURED SqlType
Key: CALCITE-2963
URL: https://issues.apache.org/jira/browse/CALCITE-2963
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.19.0
Reporter: Will Yu
Assignee: Will Yu
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() {
final String sql =
"select mailing_address.zip from sales.emp_address where home_address.city = 'abc'";
sql(sql).ok();
}
The root cause is that when generate new RelNode for old RelNode, we did not consider whether the flattened field list needs null indicator.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)