mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
Fix merge conflicts
This commit is contained in:
parent
614451998d
commit
1506545db0
@ -230,13 +230,10 @@ StorageAzure::Configuration StorageAzure::getConfiguration(ASTs & engine_args, C
|
|||||||
|
|
||||||
configuration.blobs_paths = {configuration.blob_path};
|
configuration.blobs_paths = {configuration.blob_path};
|
||||||
|
|
||||||
|
|
||||||
LOG_INFO(&Poco::Logger::get("StorageAzure"), "get_format_from_file = {}", get_format_from_file);
|
LOG_INFO(&Poco::Logger::get("StorageAzure"), "get_format_from_file = {}", get_format_from_file);
|
||||||
|
|
||||||
// if (configuration.format == "auto" && get_format_from_file)
|
if (configuration.format == "auto" && get_format_from_file)
|
||||||
// configuration.format = FormatFactory::instance().getFormatFromFileName(configuration.blob_path, true);
|
configuration.format = FormatFactory::instance().getFormatFromFileName(configuration.blob_path, true);
|
||||||
|
|
||||||
configuration.format = "TSV";
|
|
||||||
|
|
||||||
return configuration;
|
return configuration;
|
||||||
}
|
}
|
||||||
@ -367,11 +364,6 @@ AzureClientPtr StorageAzure::createClient(StorageAzure::Configuration configurat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto managed_identity_credential = std::make_shared<Azure::Identity::ManagedIdentityCredential>();
|
|
||||||
|
|
||||||
result = std::make_unique<BlobContainerClient>(configuration.connection_url, managed_identity_credential);
|
|
||||||
|
|
||||||
LOG_INFO(&Poco::Logger::get("StorageAzure"), "createClient account_name & account_key ");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -613,7 +605,7 @@ Pipe StorageAzure::read(
|
|||||||
size_t num_streams)
|
size_t num_streams)
|
||||||
{
|
{
|
||||||
if (partition_by && configuration.withWildcard())
|
if (partition_by && configuration.withWildcard())
|
||||||
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Reading from a partitioned S3 storage is not implemented yet");
|
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Reading from a partitioned Azure storage is not implemented yet");
|
||||||
|
|
||||||
Pipes pipes;
|
Pipes pipes;
|
||||||
|
|
||||||
@ -1079,7 +1071,7 @@ StorageAzureSource::StorageAzureSource(
|
|||||||
, container(container_)
|
, container(container_)
|
||||||
, file_iterator(file_iterator_)
|
, file_iterator(file_iterator_)
|
||||||
, create_reader_pool(CurrentMetrics::ObjectStorageAzureThreads, CurrentMetrics::ObjectStorageAzureThreadsActive, 1)
|
, create_reader_pool(CurrentMetrics::ObjectStorageAzureThreads, CurrentMetrics::ObjectStorageAzureThreadsActive, 1)
|
||||||
, create_reader_scheduler(threadPoolCallbackRunner<ReaderHolder>(create_reader_pool, "CreateAzureReader"))
|
, create_reader_scheduler(threadPoolCallbackRunner<ReaderHolder>(create_reader_pool, "AzureReader"))
|
||||||
{
|
{
|
||||||
reader = createReader();
|
reader = createReader();
|
||||||
if (reader)
|
if (reader)
|
||||||
|
Loading…
Reference in New Issue
Block a user