diff --git a/src/Interpreters/ExpressionActions.cpp b/src/Interpreters/ExpressionActions.cpp index 13f30ce678c..4a448e9f463 100644 --- a/src/Interpreters/ExpressionActions.cpp +++ b/src/Interpreters/ExpressionActions.cpp @@ -1442,7 +1442,7 @@ ExpressionActionsPtr ActionsDAG::linearizeActions() const return expressions; } -ExpressionActionsPtr ActionsDAG::buildExpressions() +ExpressionActionsPtr ActionsDAG::buildExpressions() const { auto cloned = clone(); auto expressions = cloned->linearizeActions(); diff --git a/src/Interpreters/ExpressionActions.h b/src/Interpreters/ExpressionActions.h index c7011dd7d86..fefe64c8374 100644 --- a/src/Interpreters/ExpressionActions.h +++ b/src/Interpreters/ExpressionActions.h @@ -213,7 +213,7 @@ public: void projectInput() { project_input = true; } void removeUnusedActions(const Names & required_names); - ExpressionActionsPtr buildExpressions(); + ExpressionActionsPtr buildExpressions() const; /// Splits actions into two parts. Returned half may be swapped with ARRAY JOIN. /// Returns nullptr if no actions may be moved before ARRAY JOIN.