[ https://issues.apache.org/jira/browse/HIVE-17054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16210411#comment-16210411 ]
Jesus Camacho Rodriguez commented on HIVE-17054: ------------------------------------------------ HIVE-17432 already exposed the nullability (based on NOT NULL and PK), and referential constraints relationship (FK - PK/UK). This patch exposes unique columns (PK / UK). > Expose SQL database constraints to Calcite > ------------------------------------------ > > Key: HIVE-17054 > URL: https://issues.apache.org/jira/browse/HIVE-17054 > Project: Hive > Issue Type: Improvement > Components: Logical Optimizer > Affects Versions: 3.0.0 > Reporter: Jesus Camacho Rodriguez > Assignee: Jesus Camacho Rodriguez > Fix For: 3.0.0 > > Attachments: HIVE-17054.patch > > > Hive already has support to declare multiple SQL constraints (PRIMARY KEY, > FOREIGN KEY, UNIQUE, and NOT NULL). Although these constraints cannot be > currently enforced on the data, they can be made available to the optimizer > by using the 'RELY' keyword. > Currently, even when they are declared with the RELY keyword, they are not > exposed to Calcite. -- This message was sent by Atlassian JIRA (v6.4.14#64029)