Build fixes.

This commit is contained in:
Yarik Briukhovetskyi 2024-11-20 20:26:36 +01:00 committed by GitHub
parent bb9b9c469d
commit cc53de6aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -123,7 +123,7 @@ public:
const ContextPtr & context);
protected:
String getPathSample(StorageInMemoryMetadata metadata, ContextPtr context);
String getPathSample(ContextPtr context);
static std::unique_ptr<ReadBufferIterator> createReadBufferIterator(
const ObjectStoragePtr & object_storage,