Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-02-19 07:03:31 +03:00
parent 8b7003ade6
commit 307fc93d1d

View File

@ -44,7 +44,7 @@ FilterBlockInputStream::FilterBlockInputStream(const BlockInputStreamPtr & input
&& !constant_filter_description.always_true)
{
/// Replace the filter column to a constant with value 1.
auto header_filter_elem = header.getByPosition(filter_column);
auto & header_filter_elem = header.getByPosition(filter_column);
header_filter_elem.column = header_filter_elem.type->createColumnConst(header.rows(), UInt64(1));
}
}