Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-22171

Sql. Row cast fails with NPE.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0-beta1
    • None
    • sql

    Description

      SELECT * FROM (VALUES ROW(CAST(ROW(1, 2.0) AS ROW(x BIGINT, y DOUBLE))));
      
      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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: