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

SQL: mixing _key and key columns in the DML queries must be disallowed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: sql
    • Labels:
      None

      Description

      DML should contain either placeholder for _key (_val) or subset of key (value) columns but not both. Also we should keep in mind _key/_value aliases

      Given table with primary key column id and value column salary. Next queries should be validated to parsing error:

      INSERT INTO TEST_TABLE (_key, id, salary) VALUES (1, 2, 42);
      UPDATE TEST_TABLE SET _val = 1, salary = 2;
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pkouznet Pavel Kuznetsov
                Reporter:
                pkouznet Pavel Kuznetsov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 40m
                  40m