From a7dbf462aa5579693e7c763ca58484c20633bba8 Mon Sep 17 00:00:00 2001 From: Andrey Zvonov <32552679+zvonand@users.noreply.github.com> Date: Tue, 12 May 2026 17:10:29 +0200 Subject: [PATCH] Merge pull request #1762 from Altinity/bugfix/antalya-26.3/1382 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 3be987e1b43c..80658bd1e7cb 100644 --- a/src/Databases/DataLake/RestCatalog.cpp +++ b/src/Databases/DataLake/RestCatalog.cpp @@ -697,6 +697,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;