hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (Jira)" <>
Subject [jira] [Updated] (HIVE-22728) Limit the scope of uniqueness of constraint name to table
Date Tue, 18 Feb 2020 21:23:00 GMT


Jesus Camacho Rodriguez updated HIVE-22728:
    Fix Version/s: 4.0.0

> Limit the scope of uniqueness of constraint name to table
> ---------------------------------------------------------
>                 Key: HIVE-22728
>                 URL:
>             Project: Hive
>          Issue Type: Wish
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Miklos Gergely
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>         Attachments: HIVE-22728.01.patch, HIVE-22728.02.patch, HIVE-22728.04.patch
>          Time Spent: 20m
>  Remaining Estimate: 0h
> Currently, constraint names are globally unique across all databases (assumption is that
this may have done by design). Nevertheless, though behavior seems to be implementation specific,
it would be interesting to limit the scope to uniqueness per table.
> To change the scope to one table, we would need to add the PARENT_TABLE_ID in the KEY_CONSTRAINTS
table to the PRIMARY KEY of that table. Some minor changes to the error messages would be
needed too, since otherwise it would be difficult to identify the correct violation in queries
that span across multiple databases. Additionally, the SQL scripts will need to be updated
to update the PRIMARY KEY.

This message was sent by Atlassian Jira

View raw message