From 84f51b9c5ac61a7cd443c11773ca40f5d86f9fb3 Mon Sep 17 00:00:00 2001 From: Igor Markelov Date: Wed, 22 May 2024 10:40:33 +0000 Subject: [PATCH] Inline compareAt --- src/Interpreters/BestCompressionPermutation.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Interpreters/BestCompressionPermutation.cpp b/src/Interpreters/BestCompressionPermutation.cpp index a11609f9e28..e4e971345d5 100644 --- a/src/Interpreters/BestCompressionPermutation.cpp +++ b/src/Interpreters/BestCompressionPermutation.cpp @@ -14,17 +14,12 @@ namespace DB namespace { -bool isEqual(const IColumn & column, size_t lhs, size_t rhs) -{ - return column.compareAt(lhs, rhs, column, 1) == 0; -} - bool isEqual(const Block & block, const SortDescription & description, size_t lhs, size_t rhs) { for (const auto & column_description : description) { const auto & column = *block.getByName(column_description.column_name).column; - if (!isEqual(column, lhs, rhs)) + if (column.compareAt(lhs, rhs, column, 1) != 0) return false; } return true;