Fix readign from fd for ORCBlockInputFormat.

This commit is contained in:
Nikolai Kochetov 2021-01-15 18:45:29 +03:00
parent 8d58ce532a
commit 76495124cd

View File

@ -28,7 +28,7 @@ Chunk ORCBlockInputFormat::generate()
Chunk res;
const Block & header = getPort().getHeader();
if (in.eof())
if (file_reader)
return res;
arrow::Status open_status = arrow::adapters::orc::ORCFileReader::Open(asArrowFile(in), arrow::default_memory_pool(), &file_reader);