mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
fix build
This commit is contained in:
parent
03f76dda1d
commit
01425df758
@ -319,7 +319,7 @@ SeekableReadBufferPtr ReadBufferS3Factory::getReader()
|
|||||||
client_ptr,
|
client_ptr,
|
||||||
bucket,
|
bucket,
|
||||||
key,
|
key,
|
||||||
verion_id,
|
version_id,
|
||||||
s3_max_single_read_retries,
|
s3_max_single_read_retries,
|
||||||
read_settings,
|
read_settings,
|
||||||
false /*use_external_buffer*/,
|
false /*use_external_buffer*/,
|
||||||
|
@ -272,7 +272,7 @@ bool StorageS3Source::initialize()
|
|||||||
|
|
||||||
file_path = fs::path(bucket) / current_key;
|
file_path = fs::path(bucket) / current_key;
|
||||||
|
|
||||||
read_buf = wrapReadBufferWithCompressionMethod(createS3ReadBuffer(current_key, version_id), chooseCompressionMethod(current_key, compression_hint));
|
read_buf = wrapReadBufferWithCompressionMethod(createS3ReadBuffer(current_key), chooseCompressionMethod(current_key, compression_hint));
|
||||||
|
|
||||||
auto input_format = getContext()->getInputFormat(format, *read_buf, sample_block, max_block_size, format_settings);
|
auto input_format = getContext()->getInputFormat(format, *read_buf, sample_block, max_block_size, format_settings);
|
||||||
QueryPipelineBuilder builder;
|
QueryPipelineBuilder builder;
|
||||||
@ -291,7 +291,7 @@ bool StorageS3Source::initialize()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<ReadBuffer> StorageS3Source::createS3ReadBuffer(const String & key, const String & version_id)
|
std::unique_ptr<ReadBuffer> StorageS3Source::createS3ReadBuffer(const String & key)
|
||||||
{
|
{
|
||||||
const size_t object_size = DB::S3::getObjectSize(client, bucket, key, version_id, false);
|
const size_t object_size = DB::S3::getObjectSize(client, bucket, key, version_id, false);
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ private:
|
|||||||
/// Recreate ReadBuffer and BlockInputStream for each file.
|
/// Recreate ReadBuffer and BlockInputStream for each file.
|
||||||
bool initialize();
|
bool initialize();
|
||||||
|
|
||||||
std::unique_ptr<ReadBuffer> createS3ReadBuffer(const String & key, const String & version_id);
|
std::unique_ptr<ReadBuffer> createS3ReadBuffer(const String & key);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user