2010YOUY01 commented on code in PR #26974:
URL: https://github.com/apache/datafusion/pull/26974#discussion_r4434057420


##########
datafusion/sqllogictest/test_files/window.slt:
##########
@@ -7801,6 +7801,30 @@ FROM range_nan_peers ORDER BY id;
 4 5 3
 5 1 3
 
+# BoundedWindowAggExec emits at most `batch_size` rows per batch, 2 here. Peer
+# group k = 1 becomes final when the first k = 2 row arrives, and k = 2 at the
+# end of the input. Each 5-row result is emitted as 2, 2 and 1 rows.
+# https://github.com/apache/datafusion/issues/26959
+statement ok
+CREATE TABLE bwag_peers(k INT, v INT) AS VALUES
+  (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (2, 6), (2, 7), (2, 8), (2, 9), (2, 
10);
+
+statement ok
+set datafusion.explain.analyze_categories = 'rows';
+
+query TT

Review Comment:
   ```suggestion
   # Metrics `output_rows` and `output_batches` satisfy the test goal above.
   query TT
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to