hawk9821 commented on code in PR #8869:
URL: https://github.com/apache/seatunnel/pull/8869#discussion_r2009818265
##########
seatunnel-api/src/main/java/org/apache/seatunnel/api/table/catalog/Catalog.java:
##########
@@ -161,21 +179,55 @@ default List<CatalogTable> getTables(ReadonlyConfig
config) throws CatalogExcept
if (StringUtils.isBlank(tablePatternStr)) {
return Collections.emptyList();
}
- Pattern databasePattern =
-
Pattern.compile(config.get(ConnectorCommonOptions.DATABASE_PATTERN));
- Pattern tablePattern =
Pattern.compile(config.get(ConnectorCommonOptions.TABLE_PATTERN));
- List<String> allDatabase = this.listDatabases();
- allDatabase.removeIf(s -> !databasePattern.matcher(s).matches());
+ Pattern tablePattern =
Pattern.compile(config.get(CatalogOptions.TABLE_PATTERN));
+ List<String> allDatabaseOrSchema;
List<TablePath> tablePaths = new ArrayList<>();
- for (String databaseName : allDatabase) {
- tableNames = this.listTables(databaseName);
+ boolean isOracle = "Oracle".equals(this.name());
Review Comment:
fixed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]