shounakmk219 commented on code in PR #12591: URL: https://github.com/apache/pinot/pull/12591#discussion_r1527891369
########## pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotCatalog.java: ########## @@ -75,7 +114,13 @@ public Table getTable(String name) { */ @Override public Set<String> getTableNames() { - return _tableCache.getTableNameMap().keySet(); + if (_databaseName != null) { + return _tableCache.getTableNameMap().keySet().stream() + .filter(n -> DatabaseUtils.isPartOfDatabase(n, _databaseName)) + .collect(Collectors.toSet()); + } else { + return Collections.emptySet(); Review Comment: Will do -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org