in services/library/src/main/java/com/google/cloud/pso/bq_snapshot_manager/functions/f01_dispatcher/BigQueryScopeLister.java [137:158]
private List<TableSpec> processTables(List<String> tableIncludeList,
List<String> tableExcludeList,
List<Pattern> tableExcludeListPatterns
) {
List<TableSpec> output = new ArrayList<>();
for (String table : tableIncludeList) {
TableSpec tableSpec = TableSpec.fromSqlString(table);
try {
Tuple<Boolean, String> checkResults = isIncluded(table, tableExcludeList, tableExcludeListPatterns);
if (!checkResults.x()) {
output.add(tableSpec);
} else {
logger.logInfoWithTracker(runId, tableSpec, String.format("Table %s is excluded by %s", table, checkResults.y()));
}
} catch (Exception ex) {
// log and continue
logger.logFailedDispatcherEntityId(runId, tableSpec, table, ex.getMessage(), ex.getClass().getName());
}
}
return output;
}