Merge pull request #62695 from ClickHouse/backport/24.3/62558

Backport #62558 to 24.3: Try to fix if_transform_strings_to_enum performance test
This commit is contained in:
Dmitry Novik 2024-04-17 11:32:06 +02:00 committed by GitHub
commit bd13ae89bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -269,6 +269,11 @@ void addQueryTreePasses(QueryTreePassManager & manager, bool only_analyze)
manager.addPass(std::make_unique<AggregateFunctionsArithmericOperationsPass>());
manager.addPass(std::make_unique<UniqInjectiveFunctionsEliminationPass>());
// Should run before optimization of GROUP BY keys to allow the removal of
// toString function.
manager.addPass(std::make_unique<IfTransformStringsToEnumPass>());
manager.addPass(std::make_unique<OptimizeGroupByFunctionKeysPass>());
manager.addPass(std::make_unique<OptimizeGroupByInjectiveFunctionsPass>());
@ -285,7 +290,6 @@ void addQueryTreePasses(QueryTreePassManager & manager, bool only_analyze)
manager.addPass(std::make_unique<FuseFunctionsPass>());
manager.addPass(std::make_unique<IfTransformStringsToEnumPass>());
manager.addPass(std::make_unique<ConvertOrLikeChainPass>());