mingmwang commented on PR #4484:
URL: 
https://github.com/apache/arrow-datafusion/pull/4484#issuecomment-1338696365

   Test SQL:
   
   ````
   WITH _sample_data AS (
                   SELECT 1 as a, 'aa' AS b
                   UNION ALL
                   SELECT 3 as a, 'aa' AS b
                   UNION ALL
                   SELECT 5 as a, 'bb' AS b
                   UNION ALL
                   SELECT 7 as a, 'bb' AS b
               ), _data2 AS (
                   SELECT
                   row_number() OVER (PARTITION BY s.b ORDER BY s.a) AS seq,
                   s.a,
                   s.b
                   FROM _sample_data s
               )
               SELECT d.b, MAX(d.a) AS max_a
               FROM _data2 d
               GROUP BY d.b
               ORDER BY d.b;
   
   
   ````


-- 
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]

Reply via email to