mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix tests
This commit is contained in:
parent
b1c154ccb4
commit
496302cb1d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user