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

Can not use DURATION parameters in select queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • sql

    Description

      An SQL query to reproduce:

      SELECT ?
      

      With a DURATION type parameter.

      Exception:

      ...
      Caused by: java.lang.NullPointerException
              at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.tryCreateCacheKeyFromParameterValues(PrepareServiceImpl.java:674) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.getPlanIfParameterHaveValues(PrepareServiceImpl.java:630) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareQuery(PrepareServiceImpl.java:339) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareAsync0(PrepareServiceImpl.java:264) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareAsync(PrepareServiceImpl.java:248) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.lambda$executeParsedStatement$14(SqlQueryProcessor.java:603) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?]
              at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2237) ~[?:?]
              at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.executeParsedStatement(SqlQueryProcessor.java:603) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.lambda$querySingle$8(SqlQueryProcessor.java:529) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?]
              at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2237) ~[?:?]
              at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.querySingle(SqlQueryProcessor.java:512) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.queryAsync(SqlQueryProcessor.java:433) ~[ignite-sql-engine-3.0.0-SNAPSHOT.jar:?]
              at org.apache.ignite.client.handler.requests.sql.ClientSqlExecuteRequest.executeAsync(ClientSqlExecuteRequest.java:169) ~[ignite-client-handler-3.0.0-SNAPSHOT.jar:?]
              ... 29 more
      

      Attachments

        Issue Links

          Activity

            People

              jooger Iurii Gerzhedovich
              isapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m