From aa5f814df602b55cf184670343f7980b75a491f5 Mon Sep 17 00:00:00 2001 From: Anton Ivashkin Date: Mon, 7 Apr 2025 20:15:32 +0200 Subject: [PATCH] Fix s3 partition wildcard --- src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp b/src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp index 3a2bfe8a990b..3528de14e532 100644 --- a/src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp +++ b/src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp @@ -89,7 +89,9 @@ StorageObjectStorageCluster::StorageObjectStorageCluster( metadata.setColumns(columns); metadata.setConstraints(constraints_); - if (sample_path.empty() && context_->getSettingsRef()[Setting::use_hive_partitioning]) + if (sample_path.empty() + && context_->getSettingsRef()[Setting::use_hive_partitioning] + && !configuration->withPartitionWildcard()) sample_path = getPathSample(metadata, context_); setInMemoryMetadata(metadata);