Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.0
-
private-branch-new-window-funcs
Description
Query that uses LEAD window function returns wrong results on developer's private branch (new-window-funcs).
Results returned by Drill
0: jdbc:drill:schema=dfs.tmp> select lead(c1) over w from union_01 window w as (partition by c3 order by c1) limit 10; +---------+ | EXPR$0 | +---------+ | 878 | | -150 | | 402 | | 402 | | 402 | | 402 | | 402 | | 160 | | 160 | | 160 | +---------+ 10 rows selected (0.349 seconds)
Results returned by Postgres
postgres=# select lead(c1) over w from union_01 window w as (partition by c3 order by c1) limit 10; lead ------ 402 402 402 402 402 160 160 (10 rows)