From cc53de6aba03427b369b34cef07c330d6a59186c Mon Sep 17 00:00:00 2001 From: Yarik Briukhovetskyi <114298166+yariks5s@users.noreply.github.com> Date: Wed, 20 Nov 2024 20:26:36 +0100 Subject: [PATCH] Build fixes. --- src/Storages/ObjectStorage/StorageObjectStorage.cpp | 4 ++-- src/Storages/ObjectStorage/StorageObjectStorage.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Storages/ObjectStorage/StorageObjectStorage.cpp b/src/Storages/ObjectStorage/StorageObjectStorage.cpp index fa6bb3327ea..591e085276c 100644 --- a/src/Storages/ObjectStorage/StorageObjectStorage.cpp +++ b/src/Storages/ObjectStorage/StorageObjectStorage.cpp @@ -42,7 +42,7 @@ namespace ErrorCodes extern const int LOGICAL_ERROR; } -String StorageObjectStorage::getPathSample(StorageInMemoryMetadata metadata, ContextPtr context) +String StorageObjectStorage::getPathSample(ContextPtr context) { auto query_settings = configuration->getQuerySettings(context); /// We don't want to throw an exception if there are no files with specified path. @@ -121,7 +121,7 @@ StorageObjectStorage::StorageObjectStorage( metadata.setComment(comment); if (sample_path.empty() && context->getSettingsRef()[Setting::use_hive_partitioning]) - sample_path = getPathSample(metadata, context); + sample_path = getPathSample(context); setVirtuals(VirtualColumnUtils::getVirtualsForFileLikeStorage(metadata.columns, context, sample_path, format_settings)); setInMemoryMetadata(metadata); diff --git a/src/Storages/ObjectStorage/StorageObjectStorage.h b/src/Storages/ObjectStorage/StorageObjectStorage.h index e2bb41a4935..b1dca777466 100644 --- a/src/Storages/ObjectStorage/StorageObjectStorage.h +++ b/src/Storages/ObjectStorage/StorageObjectStorage.h @@ -123,7 +123,7 @@ public: const ContextPtr & context); protected: - String getPathSample(StorageInMemoryMetadata metadata, ContextPtr context); + String getPathSample(ContextPtr context); static std::unique_ptr createReadBufferIterator( const ObjectStoragePtr & object_storage,