Fix tests

This commit is contained in:
Maksim Kita 2022-05-11 13:45:24 +02:00
parent b1c154ccb4
commit 496302cb1d
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#include <IO/Operators.h> #include <IO/Operators.h>
#include <Common/JSONBuilder.h> #include <Common/JSONBuilder.h>
#include <Common/SipHash.h> #include <Common/SipHash.h>
#include <DataTypes/Native.h>
#include <Interpreters/JIT/compileFunction.h> #include <Interpreters/JIT/compileFunction.h>
#include <Interpreters/JIT/CompiledExpressionCache.h> #include <Interpreters/JIT/CompiledExpressionCache.h>
@ -91,7 +91,7 @@ void compileSortDescriptionIfNeeded(SortDescription & description, const DataTyp
for (const auto & type : sort_description_types) for (const auto & type : sort_description_types)
{ {
if (!type->createColumn()->isComparatorCompilable()) if (!type->createColumn()->isComparatorCompilable() || !canBeNativeType(*type))
return; return;
} }

View File

@ -176,9 +176,7 @@ SortingTransform::SortingTransform(
description.swap(description_without_constants); description.swap(description_without_constants);
std::cout << "SortingTransform::SortingTransform increase compile attemps " << increase_sort_description_compile_attempts << std::endl;
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_attemps*/);
std::cout << "SortingTransform::SortingTransform compiled sort description " << description.compiled_sort_description << std::endl;
} }
SortingTransform::~SortingTransform() = default; SortingTransform::~SortingTransform() = default;