[ 
https://issues.apache.org/jira/browse/CALCITE-2963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Guzenko resolved CALCITE-2963.
-----------------------------------
    Fix Version/s: 1.21.0
         Assignee: Igor Guzenko
       Resolution: Fixed

Fixed in scope of CALCITE-3138. 

> IndexOutOfBoundsException in RelStructuredTypeFlattener when accessing nested 
> fields
> ------------------------------------------------------------------------------------
>
>                 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: Igor Guzenko
>            Priority: Minor
>             Fix For: 1.21.0
>
>
> 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
(v8.3.4#803005)

Reply via email to