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

Mihai Budiu commented on CALCITE-6361:
--------------------------------------

What I find strange here is that the row type is derived very early, apparently 
before validation.
This happens in the constructor of the Unnest.
Validation would probably reject this query.
Right now deriveRowType never seems to throw, but I don't see what else could 
be done here. I will try a fix using such an approach.

> Uncollect.deriveUncollectRowType crashes if the input data is not a collection
> ------------------------------------------------------------------------------
>
>                 Key: CALCITE-6361
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6361
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.37.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>
> This happens because the type checker calls getComponentType() without 
> checking first that the field type has components. It should report an error 
> in such a case.



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

Reply via email to