[ 
https://issues.apache.org/jira/browse/HIVE-23618?focusedWorklogId=489418&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-489418
 ]

ASF GitHub Bot logged work on HIVE-23618:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Sep/20 06:33
            Start Date: 23/Sep/20 06:33
    Worklog Time Spent: 10m 
      Work Description: adesh-rao commented on a change in pull request #1237:
URL: https://github.com/apache/hive/pull/1237#discussion_r492641417



##########
File path: 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java
##########
@@ -3195,13 +3201,17 @@ public void testConstraints() throws IOException {
       assertEquals(fks.size(), 2);
       List<SQLNotNullConstraint> nns = 
metaStoreClientMirror.getNotNullConstraints(new 
NotNullConstraintsRequest(DEFAULT_CATALOG_NAME, replDbName , "tbl3"));
       assertEquals(nns.size(), 1);
+      List<SQLCheckConstraint> cks = 
metaStoreClientMirror.getCheckConstraints(new 
CheckConstraintsRequest(DEFAULT_CATALOG_NAME, replDbName , "tbl7"));
+      assertEquals(cks.size(), 2);
     } catch (TException te) {
       assertNull(te);
     }
 
     run("CREATE TABLE " + dbName + ".tbl4(a string, b string, primary key (a, 
b) disable novalidate rely)", driver);
     run("CREATE TABLE " + dbName + ".tbl5(a string, b string, foreign key (a, 
b) references " + dbName + ".tbl4(a, b) disable novalidate)", driver);
     run("CREATE TABLE " + dbName + ".tbl6(a string, b string not null disable, 
unique (a) disable)", driver);
+    run("CREATE TABLE " + dbName + ".tbl9(a string CHECK (a like 'a%'), price 
double CHECK (price > 0 AND price <= 1000))", driver);
+    run("CREATE TABLE " + dbName + ".tbl10(a string, b int DEFAULT 0)", 
driver);

Review comment:
       Alter table can either add or drop the constraints. Since the drop was 
already there, I have added through alter too.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 489418)
    Time Spent: 1h 50m  (was: 1h 40m)

> NotificationLog should also contain events for default/check constraints
> ------------------------------------------------------------------------
>
>                 Key: HIVE-23618
>                 URL: https://issues.apache.org/jira/browse/HIVE-23618
>             Project: Hive
>          Issue Type: Improvement
>          Components: Standalone Metastore
>    Affects Versions: 4.0.0
>            Reporter: Adesh Kumar Rao
>            Assignee: Adesh Kumar Rao
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> This should follow similar approach of notNull/Unique constraints. This will 
> also include event replication for these constraints.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to