You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2024/05/06 22:20:05 UTC

[jira] [Closed] (CALCITE-6348) ARRAY_OVERLAP with a NULL argument crashes the compiler

     [ https://issues.apache.org/jira/browse/CALCITE-6348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Nuyanzin closed CALCITE-6348.
------------------------------------

Resolved in release 1.37.0 (2024-05-06)

> ARRAY_OVERLAP with a NULL argument crashes the compiler
> -------------------------------------------------------
>
>                 Key: CALCITE-6348
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6348
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.36.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.37.0
>
>
> The following SqlOperatorTest:
> {code:java}
>     f.checkScalar("arrays_overlap(null, null)", true,
>         "NULL");
> {code}
> causes a crash:
> {code:java}
> 	at java.base/java.util.Objects.requireNonNull(Objects.java:222)
> 	at org.apache.calcite.sql.type.SqlTypeTransforms.lambda$static$6(SqlTypeTransforms.java:124)
> 	at org.apache.calcite.sql.type.SqlTypeTransformCascade.inferReturnType(SqlTypeTransformCascade.java:66)
> 	at org.apache.calcite.sql.SqlOperator.inferReturnType(SqlOperator.java:534)
> 	at org.apache.calcite.sql.SqlOperator.validateOperands(SqlOperator.java:503)
> 	at org.apache.calcite.sql.SqlFunction.deriveType(SqlFunction.java:347)
> 	at org.apache.calcite.sql.SqlFunction.deriveType(SqlFunction.java:231)
> 	at org.apache.calcite.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:6714)
> {code}
> This issue is similar to [CALCITE-6283]



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