Fix integration test test_storage_kafka failed error

This commit is contained in:
Chao Ma 2021-04-18 09:51:53 +08:00 committed by mergify-bot
parent 8d7a53efda
commit 6238028225

View File

@ -28,7 +28,6 @@ namespace ErrorCodes
ORCBlockInputFormat::ORCBlockInputFormat(ReadBuffer & in_, Block header_) : IInputFormat(std::move(header_), in_)
{
prepareReader();
}
Chunk ORCBlockInputFormat::generate()
@ -36,6 +35,9 @@ Chunk ORCBlockInputFormat::generate()
Chunk res;
const Block & header = getPort().getHeader();
if (!file_reader)
prepareReader();
if (stripe_current >= stripe_total)
return res;
@ -62,7 +64,7 @@ void ORCBlockInputFormat::resetParser()
file_reader.reset();
include_indices.clear();
prepareReader();
stripe_current = 0;
}
void ORCBlockInputFormat::prepareReader()