Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
ghx-label-3
Description
We recently added support for primary keys and foreign keys information for tables. However, it is cleaner to have an SQLConstraint class as a container for these constraints just like hive does here: https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/constraint/Constraints.java.
This can be extended to support other kinds of constraints in the future.