Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
SUPPORT for the following statements
CREATE TABLE product ( product_id INTEGER, product_vendor_id INTEGER, PRIMARY KEY (product_id) DISABLE NOVALIDATE, CONSTRAINT product_fk_1 FOREIGN KEY (product_vendor_id) REFERENCES vendor(vendor_id) DISABLE NOVALIDATE ); CREATE TABLE vendor ( vendor_id INTEGER, PRIMARY KEY (vendor_id) DISABLE NOVALIDATE RELY );
In the above syntax, [CONSTRAINT constraint-Name] is optional. If this is not specified by the user, we will use system generated constraint name. For the purpose of simplicity, we will allow CONSTRAINT option for foreign keys and not primary key since there is only one primary key per table. The RELY/NORELY keyword is also optional.
Attachments
Attachments
Issue Links
- relates to
-
HIVE-13598 Describe extended table should show the primary keys/foreign keys associated with the table
-
- Closed
-
-
HIVE-13608 We should provide better error message while constraints with duplicate names are created
-
- Closed
-
- links to