[
https://issues.apache.org/jira/browse/CALCITE-6361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836013#comment-17836013
]
Julian Hyde commented on CALCITE-6361:
--------------------------------------
Is there a SQL query that reproduces this problem? It's sometimes reasonable
that methods such as deriveUncollectRowType() make certain assumptions -- the
alternative is an overly defensive programming style.
An alternative formulation of the same question: Do you consider this to be a
user error or an internal error?
> 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)