@@ -283,15 +283,15 @@ async fn window_partition_by_order_by() -> Result<()> {
283283 . await ?;
284284
285285 let expected = vec ! [
286- "+----+----+--------------+--------------------------------+-------------------------------+ ---------------------------------------+--------------+----------------+--------------+--------------+--------------+" ,
287- "| c1 | c2 | ROW_NUMBER() | FIRST_VALUE(test.c2 + test.c1) | LAST_VALUE(test.c2 + test.c1) | NTH_VALUE(test.c2 + test.c1,Int64(1)) | SUM(test.c2) | COUNT(test.c2) | MAX(test.c2) | MIN(test.c2) | AVG(test.c2) |" ,
288- "+----+----+--------------+--------------------------------+-------------------------------+ ---------------------------------------+--------------+----------------+--------------+--------------+--------------+" ,
289- "| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |" ,
290- "| 0 | 2 | 1 | 2 | 2 | 2 | 2 | 1 | 2 | 2 | 2 |" ,
291- "| 0 | 3 | 1 | 3 | 3 | 3 | 3 | 1 | 3 | 3 | 3 |" ,
292- "| 0 | 4 | 1 | 4 | 4 | 4 | 4 | 1 | 4 | 4 | 4 |" ,
293- "| 0 | 5 | 1 | 5 | 5 | 5 | 5 | 1 | 5 | 5 | 5 |" ,
294- "+----+----+--------------+--------------------------------+-------------------------------+ ---------------------------------------+--------------+----------------+--------------+--------------+--------------+" ,
286+ "+----+----+--------------+----------------------------------- +----------------------------------+--- ---------------------------------------+--------------+----------------+--------------+--------------+--------------+" ,
287+ "| c1 | c2 | ROW_NUMBER() | FIRST_VALUE(test.c2 Plus test.c1) | LAST_VALUE(test.c2 Plus test.c1) | NTH_VALUE(test.c2 Plus test.c1,Int64(1)) | SUM(test.c2) | COUNT(test.c2) | MAX(test.c2) | MIN(test.c2) | AVG(test.c2) |" ,
288+ "+----+----+--------------+----------------------------------- +----------------------------------+--- ---------------------------------------+--------------+----------------+--------------+--------------+--------------+" ,
289+ "| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |" ,
290+ "| 0 | 2 | 1 | 2 | 2 | 2 | 2 | 1 | 2 | 2 | 2 |" ,
291+ "| 0 | 3 | 1 | 3 | 3 | 3 | 3 | 1 | 3 | 3 | 3 |" ,
292+ "| 0 | 4 | 1 | 4 | 4 | 4 | 4 | 1 | 4 | 4 | 4 |" ,
293+ "| 0 | 5 | 1 | 5 | 5 | 5 | 5 | 1 | 5 | 5 | 5 |" ,
294+ "+----+----+--------------+----------------------------------- +----------------------------------+--- ---------------------------------------+--------------+----------------+--------------+--------------+--------------+" ,
295295 ] ;
296296
297297 // window function shall respect ordering
0 commit comments