This commit is contained in:
xiedeyantu 2022-12-23 19:33:08 +08:00
parent d0eb22a1cd
commit 68aeb39892

View File

@ -552,7 +552,7 @@ StorageS3Source::StorageS3Source(
, create_reader_scheduler(threadPoolCallbackRunner<ReaderHolder>(create_reader_pool, "CreateS3Reader"))
{
reader = createReader();
if (reader ||
if (reader ||
(reader.getReadMode() == StorageS3Source::ReaderHolder::ONLY_VIRTUAL_COLUMNS &&
!reader.isFinishedForOnlyVirtualColumns()))
reader_future = createReaderAsync();
@ -756,7 +756,7 @@ Chunk StorageS3Source::generate()
assert(reader_future.valid());
reader = reader_future.get();
if ((!reader &&
if ((!reader &&
reader.getReadMode() == ReaderHolder::ALL) ||
(reader.getReadMode() == ReaderHolder::ONLY_VIRTUAL_COLUMNS &&
reader.isFinishedForOnlyVirtualColumns()))