Skip stateful functions

This commit is contained in:
Nikolai Kochetov 2021-02-17 21:48:26 +03:00
parent f6278ed429
commit 56a5d1dafa

View File

@ -123,6 +123,9 @@ size_t tryPushDownFilter(QueryPlan::Node * parent_node, QueryPlan::Nodes & nodes
if (!filter)
return 0;
if (filter->getExpression()->hasStatefulFunctions())
return 0;
if (auto * aggregating = typeid_cast<AggregatingStep *>(child.get()))
{
const auto & params = aggregating->getParams();