From 0c70fe1a6d3a5f4db78a97f445bbac72824c6cff Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Tue, 23 Mar 2021 17:38:58 +0300 Subject: [PATCH] fix field get --- src/Processors/Transforms/WindowTransform.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Processors/Transforms/WindowTransform.cpp b/src/Processors/Transforms/WindowTransform.cpp index 3a97698453a..121b9c818e1 100644 --- a/src/Processors/Transforms/WindowTransform.cpp +++ b/src/Processors/Transforms/WindowTransform.cpp @@ -117,9 +117,7 @@ static int compareValuesWithOffsetFloat(const IColumn * _compared_column, _compared_column); const auto * reference_column = assert_cast( _reference_column); - // The underlying field type is Float64 for Float32 as well. get() - // would be a reinterpret_cast and yield an incorrect result. - const auto offset = _offset.get(); + const auto offset = _offset.get(); const auto compared_value_data = compared_column->getDataAt(compared_row); assert(compared_value_data.size == sizeof(typename ColumnType::ValueType));