From 116c40ab712c7c78331a8315eb8b15b7f148ffd5 Mon Sep 17 00:00:00 2001 From: Alberto Bastos Date: Tue, 21 Jan 2025 12:25:18 +0100 Subject: [PATCH] fix set of available table names for db-prefixed tables --- .../java/org/apache/pinot/query/catalog/PinotCatalog.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotCatalog.java b/pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotCatalog.java index 47db3df30ac7..eae81bb4d52d 100644 --- a/pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotCatalog.java +++ b/pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotCatalog.java @@ -80,8 +80,9 @@ public Table getTable(String name) { */ @Override public Set getTableNames() { - return _tableCache.getTableNameMap().keySet().stream().filter(n -> DatabaseUtils.isPartOfDatabase(n, _databaseName)) - .collect(Collectors.toSet()); + //return _tableCache.getTableNameMap().keySet().stream().filter(n -> DatabaseUtils.isPartOfDatabase(n, _databaseName)) + // .collect(Collectors.toSet()); + return _tableCache.getTableNameMap().keySet(); } @Override