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

Mihai Budiu commented on CALCITE-7704:
--------------------------------------

I will wait forĀ [CALCITE-7699] to be merged before I submit a fix, since these 
touch the same code.

> ARRAY_INSERT crashes in code generation with array-of-arrays argument
> ---------------------------------------------------------------------
>
>                 Key: CALCITE-7704
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7704
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.42.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>
> {code:sql}
> SELECT array_insert(array[array[cast(1 as double)]], 1, array[2]);
> {code}
> crashes with the following stack trace:
> {code}
> java.lang.AssertionError
> at 
> o.a.c.adapter.enumerable.RexToLixTranslator.getConvertExpression(RexToLixTranslator.java:438)
> at 
> o.a.c.adapter.enumerable.RexToLixTranslator.translateCast(RexToLixTranslator.java:338)
> at 
> o.a.c.adapter.enumerable.RexImpTable$CastImplementor.implementSafe(RexImpTable.java:3784)
> {code}



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

Reply via email to