public static List<String> externalTableWithClause(List<String> externalTableBasePathWithClause, Boolean bootstrap,
                                                     Boolean includeExtTbl) {
    List<String> withClause = new ArrayList<>(externalTableBasePathWithClause);
    if (bootstrap != null) {
      withClause.add("'" + HiveConf.ConfVars.REPL_BOOTSTRAP_EXTERNAL_TABLES + "'='" + Boolean.toString(bootstrap)
              + "'");
    }
    if (includeExtTbl != null) {
      withClause.add("'" + HiveConf.ConfVars.REPL_INCLUDE_EXTERNAL_TABLES + "'='" + Boolean.toString(includeExtTbl)
              + "'");
    }
    return withClause;
  }
ReplicationTestUtils - static helper functions for replication test
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/ReplicationTestUtils.java