Skip to content

Commit

Permalink
Adds more tests cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsherin committed Oct 17, 2024
1 parent 814a9b7 commit c4b8840
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions datafusion/sqllogictest/test_files/window.slt
Original file line number Diff line number Diff line change
Expand Up @@ -4971,6 +4971,26 @@ SELECT LAG(NULL, 1, false) OVER () FROM t1;
----
false

query B
SELECT LEAD(NULL, 0, true) OVER () FROM t1;
----
NULL

query B
SELECT LAG(NULL, 0, true) OVER () FROM t1;
----
NULL

query B
SELECT LEAD(NULL, 1, true) OVER () FROM t1;
----
true

query B
SELECT LAG(NULL, 1, true) OVER () FROM t1;
----
true

statement ok
insert into t1 values (2);

Expand All @@ -4986,6 +5006,18 @@ SELECT LAG(NULL, 1, false) OVER () FROM t1;
false
NULL

query B
SELECT LEAD(NULL, 1, true) OVER () FROM t1;
----
NULL
true

query B
SELECT LAG(NULL, 1, true) OVER () FROM t1;
----
true
NULL

statement ok
DROP TABLE t1;

Expand Down

0 comments on commit c4b8840

Please sign in to comment.