[
https://issues.apache.org/jira/browse/SPARK-22064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172222#comment-16172222
]
Sunitha Kambhampati commented on SPARK-22064:
---------------------------------------------
I'm working on this issue. Please note, this is dependent on the changes in
SPARK-21784.
> Add support for VALIDATE option to ALTER TABLE ADD CONSTRAINT command
> ----------------------------------------------------------------------
>
> Key: SPARK-22064
> URL: https://issues.apache.org/jira/browse/SPARK-22064
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Sunitha Kambhampati
>
> As part of the Informational Referential Integrity constraints feature, in
> SPARK-21784, the ALTER TABLE ADD CONSTRAINT DDL is added.
> {quote}ALTER TABLE [db_name.]table_name ADD [CONSTRAINT constraintName]
> (PRIMARY KEY (col_names) |
> FOREIGN KEY (col_names) REFERENCES [db_name.]table_name [(col_names)])
> [VALIDATE | NOVALIDATE] [RELY | NORELY]
> {quote}
> In this JIRA, we will add support to add a constraint with the VALIDATE
> option and perform the validation for the constraint. We will validate the
> constraint by running specific internal SQL statements to check if the data
> conforms to the constraint.
> E.g {quote}ALTER TABLE employee ADD CONSTRAINT pk1 PRIMARY KEY (empno)
> VALIDATE RELY{quote}
>
> The high level details are in the attached spec in
> [SPARK-19842|https://issues.apache.org/jira/browse/SPARK-19842] in Section
> 4.2.3 and Section 4.5
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]