You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2026/08/10 18:41:00 UTC

[jira] [Created] (CALCITE-7704) ARRAY_INSERT crashes in code generation with array-of-arrays argument

Mihai Budiu created CALCITE-7704:
------------------------------------

             Summary: 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
         Environment: Probably introduced in [CALCITE-5976]


            Reporter: Mihai Budiu


{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)