You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2018/03/25 02:26:04 UTC

[04/19] hive git commit: HIVE-18953 : Implement CHECK constraint (Vineet Garg via Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/5b222db3/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
index a8e8386..1b3ebcf 100755
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
@@ -42,13 +42,14 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('   get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)')
   print('  void create_table(Table tbl)')
   print('  void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)')
-  print('  void create_table_with_constraints(Table tbl,  primaryKeys,  foreignKeys,  uniqueConstraints,  notNullConstraints,  defaultConstraints)')
+  print('  void create_table_with_constraints(Table tbl,  primaryKeys,  foreignKeys,  uniqueConstraints,  notNullConstraints,  defaultConstraints,  checkConstraints)')
   print('  void drop_constraint(DropConstraintRequest req)')
   print('  void add_primary_key(AddPrimaryKeyRequest req)')
   print('  void add_foreign_key(AddForeignKeyRequest req)')
   print('  void add_unique_constraint(AddUniqueConstraintRequest req)')
   print('  void add_not_null_constraint(AddNotNullConstraintRequest req)')
   print('  void add_default_constraint(AddDefaultConstraintRequest req)')
+  print('  void add_check_constraint(AddCheckConstraintRequest req)')
   print('  void drop_table(string dbname, string name, bool deleteData)')
   print('  void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)')
   print('  void truncate_table(string dbName, string tableName,  partNames)')
@@ -115,6 +116,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('  UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request)')
   print('  NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request)')
   print('  DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request)')
+  print('  CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest request)')
   print('  bool update_table_column_statistics(ColumnStatistics stats_obj)')
   print('  bool update_partition_column_statistics(ColumnStatistics stats_obj)')
   print('  ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)')
@@ -396,10 +398,10 @@ elif cmd == 'create_table_with_environment_context':
   pp.pprint(client.create_table_with_environment_context(eval(args[0]),eval(args[1]),))
 
 elif cmd == 'create_table_with_constraints':
-  if len(args) != 6:
-    print('create_table_with_constraints requires 6 args')
+  if len(args) != 7:
+    print('create_table_with_constraints requires 7 args')
     sys.exit(1)
-  pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
+  pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),))
 
 elif cmd == 'drop_constraint':
   if len(args) != 1:
@@ -437,6 +439,12 @@ elif cmd == 'add_default_constraint':
     sys.exit(1)
   pp.pprint(client.add_default_constraint(eval(args[0]),))
 
+elif cmd == 'add_check_constraint':
+  if len(args) != 1:
+    print('add_check_constraint requires 1 args')
+    sys.exit(1)
+  pp.pprint(client.add_check_constraint(eval(args[0]),))
+
 elif cmd == 'drop_table':
   if len(args) != 3:
     print('drop_table requires 3 args')
@@ -833,6 +841,12 @@ elif cmd == 'get_default_constraints':
     sys.exit(1)
   pp.pprint(client.get_default_constraints(eval(args[0]),))
 
+elif cmd == 'get_check_constraints':
+  if len(args) != 1:
+    print('get_check_constraints requires 1 args')
+    sys.exit(1)
+  pp.pprint(client.get_check_constraints(eval(args[0]),))
+
 elif cmd == 'update_table_column_statistics':
   if len(args) != 1:
     print('update_table_column_statistics requires 1 args')