sankarh commented on a change in pull request #688: HIVE-21886 : REPL - With 
table list - Handle rename events during replace policy
URL: https://github.com/apache/hive/pull/688#discussion_r297654641
 
 

 ##########
 File path: 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestTableLevelReplicationScenarios.java
 ##########
 @@ -786,4 +786,127 @@ public void testRenameTableScenariosExternalTable() 
throws Throwable {
     replicateAndVerify(replPolicy, null, lastReplId, dumpWithClause,
             loadWithClause, bootstrapTables, replicatedTables);
   }
+
+  @Test
+  public void testRenameTableScenariosWithReplaceExternalTable() throws 
Throwable {
+    List<String> loadWithClause = 
ReplicationTestUtils.externalTableBasePathWithClause(REPLICA_EXTERNAL_BASE, 
replica);
+    List<String> dumpWithClause = Arrays.asList(
+            "'" + HiveConf.ConfVars.REPL_INCLUDE_EXTERNAL_TABLES.varname + 
"'='false'",
+            "'" + HiveConf.ConfVars.REPL_BOOTSTRAP_EXTERNAL_TABLES.varname + 
"'='false'",
+            "'" + HiveConf.ConfVars.REPL_BOOTSTRAP_ACID_TABLES.varname + 
"'='false'",
+            "'" + ReplUtils.REPL_DUMP_INCLUDE_ACID_TABLES + "'='false'"
+    );
+    String replPolicy = primaryDbName + ".['in[0-9]+'].['in100', 'in200', 
'in1400']";
+    String lastReplId = replicateAndVerify(replPolicy, null, null, 
dumpWithClause,
+            loadWithClause, new String[]{}, new String[]{});
+
+    String[] originalFullAcidTables = new String[]{"in1", "in2", "out3", 
"out4", "out5", "in100", "in200", "in300"};
 
 Review comment:
   ok

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to