Browse Source

Do not try to call IsComplete() on Arguments (#8901)

Andrey Neporada 6 months ago
parent
commit
fd7dfdf48b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ydb/library/yql/core/common_opt/yql_co_flow2.cpp

+ 1 - 1
ydb/library/yql/core/common_opt/yql_co_flow2.cpp

@@ -1060,7 +1060,7 @@ TNodeMap<ESubgraphType> MarkSubgraphForAggregate(const TExprNode::TPtr& root, co
     TNodeMap<ESubgraphType> result;
     size_t insideDependsOn = 0;
     VisitExpr(root, [&](const TExprNode::TPtr& node) {
-        if (node->IsComplete()) {
+        if (node->IsArguments() || node->IsComplete()) {
             result[node.Get()] = EXPR_CONST;
             return false;
         }