[
https://issues.apache.org/jira/browse/CALCITE-7658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18096632#comment-18096632
]
Mihai Budiu commented on CALCITE-7658:
--------------------------------------
BTW: a similar problem affects MAP(), so the fix will cover this case as well.
> Type checker rejects CAST(ARRAY() AS ROW(x INT) ARRAY)
> ------------------------------------------------------
>
> Key: CALCITE-7658
> URL: https://issues.apache.org/jira/browse/CALCITE-7658
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
>
> The typechecker accepts casts of empty arrays to other array types, such as
> INT ARRAY, but rejects casts to ARRAYs whose elements are ROW-typed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)