IMergedBlockOutputStream: Add LOGICAL_ERROR if there is no such stream

This commit is contained in:
Azat Khuzhin 2020-01-04 01:56:59 +03:00
parent 3205165e5e
commit 719f2a240b

View File

@ -170,6 +170,9 @@ void IMergedBlockOutputStream::writeSingleMark(
if (is_offsets && offset_columns.count(stream_name))
return;
if (!column_streams.count(stream_name))
throw Exception("Incorrect stream " + stream_name, ErrorCodes::LOGICAL_ERROR);
ColumnStream & stream = *column_streams[stream_name];
/// There could already be enough data to compress into the new block.