mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
fix field get
This commit is contained in:
parent
b0284f20c3
commit
0c70fe1a6d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user