summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ydb/library/yql/core/yql_opt_window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/library/yql/core/yql_opt_window.cpp b/ydb/library/yql/core/yql_opt_window.cpp
index 556d893f853..ac5908bccbd 100644
--- a/ydb/library/yql/core/yql_opt_window.cpp
+++ b/ydb/library/yql/core/yql_opt_window.cpp
@@ -2316,6 +2316,9 @@ void SplitFramesByType(const TExprNode::TPtr& frames, TExprNode::TPtr& rowFrames
TExprNode::TPtr ProcessRowsFrames(TPositionHandle pos, const TExprNode::TPtr& input, const TStructExprType& rowType, const TExprNode::TPtr& dependsOn,
const TExprNode::TPtr& frames, TExprContext& ctx)
{
+ if (frames->ChildrenSize() == 0) {
+ return input;
+ }
TExprNode::TPtr processed = input;
TExprNode::TPtr dataQueue;
TQueueParams queueParams;