doki23 opened a new issue, #2448: URL: https://github.com/apache/arrow-datafusion/issues/2448
**Describe the bug** Result of window function is wrong. **To Reproduce** Steps to reproduce the behavior: Test with code ``` execute_with_partition( "select c2, SUM(c2) OVER (PARTITION BY c2 ORDER BY c1) as sum_c2 from test limit 5", 4, ) ``` The result vec is ``` "+----+--------+", "| c2 | sum_c2 |", "+----+--------+", "| 1 | 1 |", "| 1 | 2 |", "| 1 | 3 |", "| 1 | 4 |", "| 2 | 2 |", "+----+--------+", ``` **Expected behavior** ``` "+----+--------+", "| c2 | sum_c2 |", "+----+--------+", "| 1 | 4 |", "| 1 | 4 |", "| 1 | 4 |", "| 1 | 4 |", "| .. | .. |", "+----+--------+", ``` **Additional context** Add any other context about the problem here. Problem is about `order by c1`. It'll be correct if remove the `order by c2`. -- 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: github-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org