[Enhancement] improve lake information schema performance (backport #62404) (#62441)

Signed-off-by: SevenJ <wenjun7j@gmail.com>
Co-authored-by: SevenJ <166966490+Wenjun7J@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2025-08-29 11:24:00 +08:00 committed by GitHub
parent bf3c758a1d
commit 71e93ec62b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -507,6 +507,10 @@ public class FrontendServiceImpl implements FrontendService.Iface {
for (String tableName : metadataMgr.listTableNames(context, catalogName, params.db)) {
LOG.debug("get table: {}, wait to check", tableName);
Table tbl = null;
if (!PatternMatcher.matchPattern(params.getPattern(), tableName, matcher, caseSensitive)) {
continue;
}
try {
tbl = metadataMgr.getTable(context, catalogName, params.db, tableName);
} catch (Exception e) {
@ -523,10 +527,6 @@ public class FrontendServiceImpl implements FrontendService.Iface {
continue;
}
if (!PatternMatcher.matchPattern(params.getPattern(), tableName, matcher, caseSensitive)) {
continue;
}
tablesResult.add(tableName);
}
}