From 86f7fbce85c22722de874cdacf75bdd56281d724 Mon Sep 17 00:00:00 2001 From: Andrey Zvonov <32552679+zvonand@users.noreply.github.com> Date: Tue, 4 Aug 2026 11:43:50 +0200 Subject: [PATCH] Merge pull request #2124 from Altinity/feature/antalya-26.6/pr-1762 Antalya 26.6: Do not read empty namespaces from catalog --- src/Databases/DataLake/RestCatalog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Databases/DataLake/RestCatalog.cpp b/src/Databases/DataLake/RestCatalog.cpp index 3b3b86785c5a..8ff94441d41a 100644 --- a/src/Databases/DataLake/RestCatalog.cpp +++ b/src/Databases/DataLake/RestCatalog.cpp @@ -1315,6 +1315,13 @@ void RestCatalog::getNamespacesRecursive( { chassert(current_namespace.starts_with(base_namespace)); + /// Protection from subnamepsaces with empty names + if (current_namespace == base_namespace) + { + LOG_WARNING(log, "Namespace {} has a subnamespace with empty name. This is an error in catalog implementation.", base_namespace); + continue; + } + if (stop_condition && stop_condition(current_namespace)) break;