From cd1bbc6a1b83c94b0fd4ddd954879b54672ad43a Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Thu, 16 Jun 2022 16:40:02 +0200 Subject: [PATCH] SortDescription compile fix typo --- src/Core/SortDescription.cpp | 8 ++++---- src/Core/SortDescription.h | 2 +- .../Merges/Algorithms/MergingSortedAlgorithm.cpp | 2 +- src/Processors/Transforms/SortingTransform.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Core/SortDescription.cpp b/src/Core/SortDescription.cpp index e7fa6816807..ff81f69383c 100644 --- a/src/Core/SortDescription.cpp +++ b/src/Core/SortDescription.cpp @@ -82,7 +82,7 @@ static Poco::Logger * getLogger() return &logger; } -void compileSortDescriptionIfNeeded(SortDescription & description, const DataTypes & sort_description_types, bool increase_compile_attemps) +void compileSortDescriptionIfNeeded(SortDescription & description, const DataTypes & sort_description_types, bool increase_compile_attempts) { static std::unordered_map counter; static std::mutex mutex; @@ -109,7 +109,7 @@ void compileSortDescriptionIfNeeded(SortDescription & description, const DataTyp UInt64 & current_counter = counter[sort_description_hash_key]; if (current_counter < description.min_count_to_compile_sort_description) { - current_counter += static_cast(increase_compile_attemps); + current_counter += static_cast(increase_compile_attempts); return; } } @@ -142,11 +142,11 @@ void compileSortDescriptionIfNeeded(SortDescription & description, const DataTyp #else -void compileSortDescriptionIfNeeded(SortDescription & description, const DataTypes & sort_description_types, bool increase_compile_attemps) +void compileSortDescriptionIfNeeded(SortDescription & description, const DataTypes & sort_description_types, bool increase_compile_attempts) { (void)(description); (void)(sort_description_types); - (void)(increase_compile_attemps); + (void)(increase_compile_attempts); } #endif diff --git a/src/Core/SortDescription.h b/src/Core/SortDescription.h index 3d4e3b665ee..730a64b77ad 100644 --- a/src/Core/SortDescription.h +++ b/src/Core/SortDescription.h @@ -107,7 +107,7 @@ public: /** Compile sort description for header_types. * Description is compiled only if compilation attempts to compile identical description is more than min_count_to_compile_sort_description. */ -void compileSortDescriptionIfNeeded(SortDescription & description, const DataTypes & sort_description_types, bool increase_compile_attemps); +void compileSortDescriptionIfNeeded(SortDescription & description, const DataTypes & sort_description_types, bool increase_compile_attempts); /// Outputs user-readable description into `out`. void dumpSortDescription(const SortDescription & description, WriteBuffer & out); diff --git a/src/Processors/Merges/Algorithms/MergingSortedAlgorithm.cpp b/src/Processors/Merges/Algorithms/MergingSortedAlgorithm.cpp index 3b626e379ca..627ac3f873c 100644 --- a/src/Processors/Merges/Algorithms/MergingSortedAlgorithm.cpp +++ b/src/Processors/Merges/Algorithms/MergingSortedAlgorithm.cpp @@ -40,7 +40,7 @@ MergingSortedAlgorithm::MergingSortedAlgorithm( queue_variants = SortQueueVariants(sort_description_types, description); if (queue_variants.variantSupportJITCompilation()) - compileSortDescriptionIfNeeded(description, sort_description_types, true /*increase_compile_attemps*/); + compileSortDescriptionIfNeeded(description, sort_description_types, true /*increase_compile_attempts*/); } void MergingSortedAlgorithm::addInput() diff --git a/src/Processors/Transforms/SortingTransform.cpp b/src/Processors/Transforms/SortingTransform.cpp index 779e4e6047d..97935bffd0c 100644 --- a/src/Processors/Transforms/SortingTransform.cpp +++ b/src/Processors/Transforms/SortingTransform.cpp @@ -175,7 +175,7 @@ SortingTransform::SortingTransform( description.swap(description_without_constants); if (SortQueueVariants(sort_description_types, description).variantSupportJITCompilation()) - compileSortDescriptionIfNeeded(description, sort_description_types, increase_sort_description_compile_attempts /*increase_compile_attemps*/); + compileSortDescriptionIfNeeded(description, sort_description_types, increase_sort_description_compile_attempts /*increase_compile_attempts*/); } SortingTransform::~SortingTransform() = default;