dbms: Cleanup [#METR-19266]

This commit is contained in:
Alexey Arno 2016-08-05 17:59:26 +03:00
parent 989b3d87fd
commit efe8a6f7da
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ void NativeBlockInputStream::readData(const IDataType & type, IColumn & column,
ColumnNullable & nullable_col = static_cast<ColumnNullable &>(column);
IColumn & nested_col = *(nullable_col.getNestedColumn().get());
ColumnUInt8 & null_map = static_cast<ColumnUInt8 &>(*(nullable_col.getNullValuesByteMap().get()));
IColumn & null_map = *(nullable_col.getNullValuesByteMap().get());
DataTypeUInt8{}.deserializeBinary(null_map, istr, rows, 0);
readData(nested_type, nested_col, istr, rows);

View File

@ -55,8 +55,8 @@ void NativeBlockOutputStream::writeData(const IDataType & type, const ColumnPtr
const ColumnNullable & nullable_col = static_cast<const ColumnNullable &>(*full_column.get());
const ColumnPtr & nested_col = nullable_col.getNestedColumn();
const ColumnUInt8 & content = static_cast<const ColumnUInt8 &>(*(nullable_col.getNullValuesByteMap().get()));
DataTypeUInt8{}.serializeBinary(content, ostr, offset, limit);
const IColumn & null_map = *(nullable_col.getNullValuesByteMap().get());
DataTypeUInt8{}.serializeBinary(null_map, ostr, offset, limit);
writeData(nested_type, nested_col, ostr, offset, limit);
}