fix field get

This commit is contained in:
Alexander Kuzmenkov 2021-03-23 17:38:58 +03:00
parent b0284f20c3
commit 0c70fe1a6d

View File

@ -117,9 +117,7 @@ static int compareValuesWithOffsetFloat(const IColumn * _compared_column,
_compared_column);
const auto * reference_column = assert_cast<const ColumnType *>(
_reference_column);
// The underlying field type is Float64 for Float32 as well. get<Float32>()
// would be a reinterpret_cast and yield an incorrect result.
const auto offset = _offset.get<Float64>();
const auto offset = _offset.get<Float32>();
const auto compared_value_data = compared_column->getDataAt(compared_row);
assert(compared_value_data.size == sizeof(typename ColumnType::ValueType));