Source:
<code>public static boolean shouldReplicate(ReplicationSpec replicationSpec, Table tableHandle, boolean isEventDump, Set<String> bootstrapTableList, ReplScope oldReplScope, HiveConf hiveConf) { if (replicationSpec == null) { replicationSpec = new ReplicationSpec(); } if (replicationSpec.isNoop() || tableHandle == null) { return false; } if (tableHandle.isNonNative() && !replicationSpec.isMetadataOnly() && !Utils.shouldDumpMetaDataOnlyForExternalTables(tableHandle, hiveConf)) { return false; } if (replicationSpec.isInReplicationScope()) { if (tableHandle.isTemporary()) { return false; } if (MetaStoreUtils.isExternalTable(tableHandle.getTTable())) { boolean shouldReplicateExternalTables = hiveConf.getBoolVar(HiveConf.ConfVars.REPL_INCLUDE_EXTERNAL_TABLES) || replicationSpec.isMetadataOnly() <START> || Utils.shouldDumpMetaDataOnlyForExternalTables(tableHandle, hiveConf); <END> if (isEventDump) { shouldReplicateExternalTables = shouldReplicateExternalTables && !hiveConf.getBoolVar(HiveConf.ConfVars.REPL_BOOTSTRAP_EXTERNAL_TABLES) && ReplUtils.tableIncludedInReplScope(oldReplScope, tableHandle.getTableName()); } return shouldReplicateExternalTables; } if (AcidUtils.isTransactionalTable(tableHandle.getTTable())) { if (!ReplUtils.includeAcidTableInDump(hiveConf)) { return false; } if (isEventDump && hiveConf.getBoolVar(HiveConf.ConfVars.REPL_BOOTSTRAP_ACID_TABLES)) { return false; } } if (isEventDump) { if (!ReplUtils.tableIncludedInReplScope(oldReplScope, tableHandle.getTableName())) { return false; } return (bootstrapTableList == null || !bootstrapTableList.contains(tableHandle.getTableName().toLowerCase())); } } return true; }</code><technical_language>check is specific DAS ..it includes external table meta data if external table replication is enabled ..i if for this config</technical_language>

Target:
public static boolean shouldReplicate(ReplicationSpec replicationSpec, Table tableHandle, boolean isEventDump, Set<String> bootstrapTableList, ReplScope oldReplScope, HiveConf hiveConf) { if (replicationSpec == null) { replicationSpec = new ReplicationSpec(); } if (replicationSpec.isNoop() || tableHandle == null) { return false; } if (tableHandle.isNonNative() && !replicationSpec.isMetadataOnly()) { return false; } if (replicationSpec.isInReplicationScope()) { if (tableHandle.isTemporary()) { return false; } if (MetaStoreUtils.isExternalTable(tableHandle.getTTable())) { boolean shouldReplicateExternalTables = hiveConf.getBoolVar(HiveConf.ConfVars.REPL_INCLUDE_EXTERNAL_TABLES) || replicationSpec.isMetadataOnly(); if (isEventDump) { shouldReplicateExternalTables = shouldReplicateExternalTables && !hiveConf.getBoolVar(HiveConf.ConfVars.REPL_BOOTSTRAP_EXTERNAL_TABLES) && ReplUtils.tableIncludedInReplScope(oldReplScope, tableHandle.getTableName()); } return shouldReplicateExternalTables; } if (AcidUtils.isTransactionalTable(tableHandle.getTTable())) { if (!ReplUtils.includeAcidTableInDump(hiveConf)) { return false; } if (isEventDump && hiveConf.getBoolVar(HiveConf.ConfVars.REPL_BOOTSTRAP_ACID_TABLES)) { return false; } } if (isEventDump) { if (!ReplUtils.tableIncludedInReplScope(oldReplScope, tableHandle.getTableName())) { return false; } return (bootstrapTableList == null || !bootstrapTableList.contains(tableHandle.getTableName().toLowerCase())); } } return true; }