You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Iurii Gerzhedovich (Jira)" <ji...@apache.org> on 2024/05/13 08:58:00 UTC

[jira] [Commented] (IGNITE-22171) Sql. Row cast fails with NPE.

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

Iurii Gerzhedovich commented on IGNITE-22171:
---------------------------------------------

Let's consider forbidding to use constructor of ROW together with an ARRAY/COLLECTIONS/.....

> Sql. Row cast fails with NPE.
> -----------------------------
>
>                 Key: IGNITE-22171
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22171
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 3.0.0-beta1
>            Reporter: Evgeny Stanilovsky
>            Priority: Minor
>              Labels: ignite-3
>
> {noformat}
> SELECT * FROM (VALUES ROW(CAST(ROW(1, 2.0) AS ROW(x BIGINT, y DOUBLE))));
> {noformat}
> {noformat}
> Caused by: java.lang.NullPointerException: SqlTypeFamily for RecordType(BIGINT X, DOUBLE Y)
> 	at java.base/java.util.Objects.requireNonNull(Objects.java:349)
> 	at org.apache.ignite.internal.sql.engine.exec.exp.RexToLixTranslator.scaleIntervalToNumber(RexToLixTranslator.java:1055)
> 	at org.apache.ignite.internal.sql.engine.exec.exp.RexToLixTranslator.translateCast(RexToLixTranslator.java:689)
> {noformat}



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