You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Evgeny Stanilovsky (Jira)" <ji...@apache.org> on 2022/02/17 15:48:00 UTC

[jira] [Created] (IGNITE-16578) Sql. Implement validation of inserts with composite PK and partially determined PK consistent columns.

Evgeny Stanilovsky created IGNITE-16578:
-------------------------------------------

             Summary: Sql. Implement validation of inserts with composite PK and partially determined PK consistent columns.
                 Key: IGNITE-16578
                 URL: https://issues.apache.org/jira/browse/IGNITE-16578
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Evgeny Stanilovsky
            Assignee: Evgeny Stanilovsky
             Fix For: 3.0.0-alpha5


Partial PK update possibilities:

{noformat}
CREATE TABLE test1 (k1 int, k2 int, a int, b int, CONSTRAINT PK PRIMARY KEY (k1, k2));
INSERT INTO test1 (k2, b) VALUES (1, 1); <-- need to be rejected

CREATE TABLE test2 (k1 int DEFAULT 0, k2 int, a int, b int, CONSTRAINT PK PRIMARY KEY (k1, k2));
INSERT INTO test1 (k2, b) VALUES (1, 1);  <-- it`s all ok there.
{noformat}




--
This message was sent by Atlassian Jira
(v8.20.1#820001)