提交 0c70fe1a 编写于 作者: A Alexander Kuzmenkov

fix field get

上级 b0284f20
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册