diff --git a/src/Interpreters/BestCompressionPermutation.cpp b/src/Interpreters/BestCompressionPermutation.cpp index 389f3608268..a11609f9e28 100644 --- a/src/Interpreters/BestCompressionPermutation.cpp +++ b/src/Interpreters/BestCompressionPermutation.cpp @@ -1,10 +1,10 @@ #include -#include #include -#include -#include #include +#include +#include +#include #include @@ -101,16 +101,16 @@ std::vector getNotAlreadySortedColumnsIndex(const Block & block, const S EqualRanges getEqualRanges(const Block & block, const SortDescription & description, const IColumn::Permutation & permutation) { EqualRanges ranges; - const ssize_t rows = block.rows(); + const size_t rows = block.rows(); if (description.empty()) { ranges.push_back({0, rows}); } else { - for (ssize_t i = 0; i < rows;) + for (size_t i = 0; i < rows;) { - ssize_t j = i; + size_t j = i; for (; j < rows && isEqual(block, description, permutation[i], permutation[j]); ++j) { }