[
https://issues.apache.org/jira/browse/PHOENIX-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995633#comment-13995633
]
Eli Levine commented on PHOENIX-940:
------------------------------------
I have created a separate issue for views to be able to extend base table's PK:
https://issues.apache.org/jira/browse/PHOENIX-978
This issue is for a general-purpose way to declare a UNIQUE constraint on a set
of columns.
> Unique Constraint
> -----------------
>
> Key: PHOENIX-940
> URL: https://issues.apache.org/jira/browse/PHOENIX-940
> Project: Phoenix
> Issue Type: New Feature
> Reporter: Eli Levine
>
> Add support for UNIQUE constraint on one or more columns in CREATE and ALTER
> TABLE statements:
> {code}
> CONSTRAINT constraint_name UNIQUE (column1, column2, . column_n)
> {code}
> One possible way to implement this is by adding a secondary index on columns
> involved in the constraint and adding a check for column values before upsert.
--
This message was sent by Atlassian JIRA
(v6.2#6252)