Fix header for catboost pool [#CLICKHOUSE-3871]

This commit is contained in:
Nikolai Kochetov 2018-08-20 13:33:14 +03:00
parent 57b626a796
commit aaf719d671

View File

@ -57,10 +57,9 @@ public:
reader->readSuffix();
}
Block getHeader() const override { return sample_block; }
Block getHeader() const override { return reader->getHeader(); }
private:
Block sample_block;
std::unique_ptr<ReadBufferFromFileDescriptor> read_buf;
BlockInputStreamPtr reader;
std::string file_name;