dengzhhu653 commented on code in PR #5458:
URL: https://github.com/apache/hive/pull/5458#discussion_r1774996933


##########
ql/src/test/queries/clientpositive/create_like3.q:
##########
@@ -0,0 +1,80 @@
+-- Tests the copying over of Table Parameters according to a HiveConf setting
+-- set DDL_CTL_PARAMETERS_WHITELIST
+-- when doing a CREATE TABLE LIKE.
+
+CREATE EXTERNAL TABLE dummy_table_1 (dummy_col STRING)
+STORED AS AVRO
+TBLPROPERTIES (
+  'avro.schema.literal'='{
+    "type":"record",
+    "name":"dummy_record_1",
+    "namespace":"dummy_namespace",
+    "fields":[
+      {"name":"field1","type":["null","string"],"default":null},
+      
{"name":"field2","type":["null",{"type":"bytes","logicalType":"decimal","precision":10,"scale":3}],"default":null}
+    ]}'
+);
+
+SHOW CREATE TABLE dummy_table_1;
+CREATE EXTERNAL TABLE dummy_like_table_1 LIKE dummy_table_1;
+SHOW CREATE TABLE dummy_like_table_1;
+
+ALTER TABLE dummy_table_1 SET TBLPROPERTIES (
+  'avro.schema.literal'='{
+    "type":"record",
+    "name":"dummy_record_1",
+    "namespace":"dummy_namespace",
+    "fields":[
+      {"name":"field1","type":["null","string"],"default":null},
+      
{"name":"field2","type":["null",{"type":"bytes","logicalType":"decimal","precision":10,"scale":3}],"default":null},
+      {"name":"field3","type":["null","string"],"default":null}
+    ]}'
+);
+
+SHOW CREATE TABLE dummy_table_1;
+CREATE EXTERNAL TABLE dummy_like_table_2 LIKE dummy_table_1;

Review Comment:
   what's this purpose? we have already checked this by `CREATE EXTERNAL TABLE 
dummy_like_table_1 LIKE dummy_table_1;`



-- 
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.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to