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

H2Tree goes into illegal state when non-indexed columns are dropped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9, 2.8.1
    • sql
    • None
    • Fixed an issue where lookup over index is crashed with "General error: java.lang.ArrayIndexOutOfBoundsException" when some column prior to the indexed ones were dropped.
    • Release Notes Required

    Description

      How to reproduce:

      • CREATE TABLE tbl (f0 INT, f1 INT, f2 INT, f3 INT, f4 INT, PRIMARY KEY (f3, f4))
      • populate table with some data
      • ALTER TABLE tbl DROP COLUMN f1, f2
      • try to execute query which will use pk index: SELECT * FROM tbl WHERE f3 = 1 AND f4 = 1

      Expected:

      • Query returns result set

      Actual:

      • Query fails with General error: "java.lang.ArrayIndexOutOfBoundsException: 5";

      Attachments

        Issue Links

          Activity

            People

              korlov Konstantin Orlov
              korlov Konstantin Orlov
              Ivan Pavlukhin Ivan Pavlukhin
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m