@Test
  public void replicationWithTableNameContainsKeywords() throws Throwable {
    List<String> withClause = ReplicationTestUtils.includeExternalTableClause(true);

    WarehouseInstance.Tuple tuple = primary
            .run("use " + primaryDbName)
            .run("create external table t1_functions (id int)")
            .run("insert into table t1_functions values (1)")
            .run("insert into table t1_functions values (2)")
            .run("create external table t2_constraints (place string) partitioned by (country string)")
            .run("insert into table t2_constraints partition(country='india') values ('bangalore')")
            .run("insert into table t2_constraints partition(country='us') values ('austin')")
            .run("insert into table t2_constraints partition(country='france') values ('paris')")
            .dump(primaryDbName, withClause);

    replica.load(replicatedDbName, primaryDbName, withClause)
            .run("repl status " + replicatedDbName)
            .verifyResult(tuple.lastReplicationId)
            .run("use " + replicatedDbName)
            .run("show tables like 't1_functions'")
            .verifyResults(new String[] {"t1_functions"})
            .run("show tables like 't2_constraints'")
            .verifyResults(new String[] {"t2_constraints"})
            .run("select id from t1_functions")
            .verifyResults(new String[] {"1", "2"})
            .verifyReplTargetProperty(replicatedDbName);

    primary.run("use " + primaryDbName)
            .run("create external table t3_bootstrap (id int)")
            .run("insert into table t3_bootstrap values (10)")
            .run("insert into table t3_bootstrap values (20)")
            .run("create table t4_tables (id int)")
            .run("insert into table t4_tables values (10)")
            .run("insert into table t4_tables values (20)")
            .dump(primaryDbName, withClause);

    replica.load(replicatedDbName, primaryDbName, withClause)
            .run("use " + replicatedDbName)
            .run("show tables like 't3_bootstrap'")
            .verifyResults(new String[] {"t3_bootstrap"})
            .run("show tables like 't4_tables'")
            .verifyResults(new String[] {"t4_tables"})
            .verifyReplTargetProperty(replicatedDbName);
  }
@param sourceTableName  -- Provide the fully qualified table name
@param replicaTableName -- Provide the fully qualified table name
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosExternalTables.java