From e15b1c6e5f1eda98b9cd932f038be9b042f05e0b Mon Sep 17 00:00:00 2001 From: Nikita Mikhaylov Date: Thu, 28 Dec 2023 17:25:27 +0000 Subject: [PATCH] Fixed --- src/Processors/Transforms/CheckSortedTransform.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Processors/Transforms/CheckSortedTransform.cpp b/src/Processors/Transforms/CheckSortedTransform.cpp index 74579130fdfa..a2ba8e21ba31 100644 --- a/src/Processors/Transforms/CheckSortedTransform.cpp +++ b/src/Processors/Transforms/CheckSortedTransform.cpp @@ -52,6 +52,11 @@ void CheckSortedTransform::transform(Chunk & chunk) } }; + /// ColumnVector tries to cast the rhs column to the same type (ColumnVector) in compareAt method. + /// And it doesn't care about the possible incompatibilities in data types + /// (for example in case when the right column is ColumnSparse) + convertToFullIfSparse(chunk); + const auto & chunk_columns = chunk.getColumns(); ++rows_read;