[ 
https://issues.apache.org/jira/browse/CALCITE-7043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954186#comment-17954186
 ] 

Mihai Budiu commented on CALCITE-7043:
--------------------------------------

I didn't at the time know that it is actually legal to access ROW fields by 
index, e.g., row[1], where row has a ROW type. This is how the bug is triggered.

> Type inferred for SqlItemOperator has incorrect nullability
> -----------------------------------------------------------
>
>                 Key: CALCITE-7043
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7043
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.39.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>
> This issue is related to CALCITE-6764
> Accessing a field within a nullable ROW should always produce a nullable 
> result, even if the field itself is not nullable. The previous issue fixed 
> this bug in the Validator, but the same problem persists in 
> SqlItemOperator.inferReturnType.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to