#include #include namespace DB { IInputFormat::IInputFormat(Block header, ReadBuffer & in_) : ISource(std::move(header)), in(in_) { column_mapping = std::make_shared(); } void IInputFormat::resetParser() { in.ignoreAll(); // those are protected attributes from ISource (I didn't want to propagate resetParser up there) finished = false; got_exception = false; getPort().getInputPort().reopen(); } }