mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Build fixes.
This commit is contained in:
parent
bb9b9c469d
commit
cc53de6aba
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user