fix reset of parser

This commit is contained in:
Anton Popov 2021-09-02 04:45:28 +03:00
parent 18dd1345fa
commit 37f2a0a021

View File

@ -360,11 +360,10 @@ try
for (const auto & entry : data->entries)
{
buffer = std::make_unique<ReadBufferFromString>(entry->bytes);
format->resetParser();
format->setReadBuffer(*buffer);
current_entry = entry;
total_rows += executor.execute();
format->resetParser();
}
auto chunk = Chunk(executor.getResultColumns(), total_rows);