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

Calcite engine. SetOp execution node cannot be rewinded

    XMLWordPrintableJSON

Details

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

    Description

      Reproducer:

      executeSql("CREATE TABLE test(i INTEGER)");
      executeSql("INSERT INTO test VALUES (1), (2)");
      assertQuery("SELECT (SELECT test.i EXCEPT SELECT 0) FROM test")
          .returns(1)
          .returns(2)
          .check();

      Throws:

      Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
          at java.util.ArrayList.rangeCheck(ArrayList.java:657)
          at java.util.ArrayList.get(ArrayList.java:433)
          at org.apache.ignite.internal.processors.query.calcite.exec.rel.AbstractSetOpNode.request(AbstractSetOpNode.java:76)

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              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 - 0.5h
                  0.5h