Update complie expressions.

This commit is contained in:
Nikolai Kochetov 2020-11-06 11:06:06 +03:00
parent 54d6b47608
commit 11191d932a

View File

@ -588,7 +588,7 @@ static bool isCompilable(const IFunctionBase & function)
static bool isCompilableConstant(const ActionsDAG::Node & node)
{
return node.column && isColumnConst(*node.column) && canBeNativeType(*node.result_type);
return node.column && isColumnConst(*node.column) && canBeNativeType(*node.result_type) && node.allow_constant_folding;
}
static bool isCompilableFunction(const ActionsDAG::Node & node)