hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vineet Garg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-16605) Enforce NOT NULL constraints
Date Tue, 06 Feb 2018 00:30:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-16605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vineet Garg updated HIVE-16605:
-------------------------------
    Status: Patch Available  (was: Open)

> Enforce NOT NULL constraints
> ----------------------------
>
>                 Key: HIVE-16605
>                 URL: https://issues.apache.org/jira/browse/HIVE-16605
>             Project: Hive
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Carter Shanklin
>            Assignee: Vineet Garg
>            Priority: Major
>         Attachments: HIVE-16605.1.patch, HIVE-16605.2.patch, HIVE-16605.3.patch, HIVE-16605.4.patch,
HIVE-16605.5.patch
>
>
> Since NOT NULL is so common it would be great to have tables start to enforce that.
> [~ekoifman] described a possible approach in HIVE-16575:
> {quote}
> One way to enforce not null constraint is to have the optimizer add enforce_not_null
UDF which throws if it sees a NULL, otherwise it's pass through.
> So if 'b' has not null constraint,
> Insert into T select a,b,c... would become
> Insert into T select a, enforce_not_null(b), c.....
> This would work for any table type.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message