Fix remove/wrap nullable transforms.

This commit is contained in:
Nikolai Kochetov 2018-11-21 18:18:40 +03:00
parent 7371166e33
commit db3ec74866

View File

@ -81,7 +81,7 @@ static Blocks removeNullable(Block && block, const ColumnNumbers & column_number
removeByPosition(number);
removeByPosition(result);
auto & result_null_map = null_maps.getByPosition(result);
auto & result_null_map = null_maps.getByPosition(column_numbers.size());
if (has_const_null_arg)
result_null_map.column = DataTypeUInt8().createColumnConst(block.getNumRows(), 1);
else