You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Ruben Q L (Jira)" <ji...@apache.org> on 2020/11/24 18:53:00 UTC
[jira] [Commented] (CALCITE-4064) Unnest on array with nested
structs causes ArrayStoreException
[ https://issues.apache.org/jira/browse/CALCITE-4064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17238314#comment-17238314 ]
Ruben Q L commented on CALCITE-4064:
------------------------------------
Re-visiting this ticket, it seems a duplicate of CALCITE-2000
> Unnest on array with nested structs causes ArrayStoreException
> --------------------------------------------------------------
>
> Key: CALCITE-4064
> URL: https://issues.apache.org/jira/browse/CALCITE-4064
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.23.0
> Reporter: Ruben Q L
> Priority: Major
>
> Maybe related to CALCITE-4063.
> The problem can be reproduced by running the following query:
> {code:sql}
> select * from UNNEST(array[ROW(1, ROW(5, 10)), ROW(2, ROW(6, 12))])
> {code}
> Which fails with:
> {code}
> java.lang.ArrayStoreException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.calcite.runtime.SqlFunctions$ProductComparableListEnumerator.current(SqlFunctions.java:2837)
> at org.apache.calcite.runtime.SqlFunctions$ProductComparableListEnumerator.current(SqlFunctions.java:2804)
> at org.apache.calcite.linq4j.EnumerableDefaults$17$1.current(EnumerableDefaults.java:2619)
> at org.apache.calcite.linq4j.Linq4j$EnumeratorIterator.next(Linq4j.java:684)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)