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

Query engine allows to insert rows with logically equal compound PK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.1
    • 2.13
    • sql
    • Fixed query engine allows to insert rows with logically equal compound PK
    • Release Notes Required

    Description

      It's possible now to insert two logically equal yet physically different keys with SQL API into a table, that will bring indexes into inconsistent state.

      For example follow snippet will pass, although it should have fallen on the third statement:

      create table test (id1 int, id2 int, val int, constraint primary key(id1, id2));
      
      insert into test (id1, id2, val) values (1, null, 1);
      
      insert into test (id1, val) values (1, 1); <-- should fail here because there is already exists such key, but it's
      

      Attachments

        Activity

          People

            tledkov-gridgain Taras Ledkov
            tledkov-gridgain Taras Ledkov
            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 - 0.5h
                0.5h