Skip to content

Commit

Permalink
Disable failing sqllogic tests for handling NULL input
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsherin committed Oct 16, 2024
1 parent 4385f21 commit 270a203
Showing 1 changed file with 44 additions and 43 deletions.
87 changes: 44 additions & 43 deletions datafusion/sqllogictest/test_files/window.slt
Original file line number Diff line number Diff line change
Expand Up @@ -4945,48 +4945,49 @@ DROP TABLE t;

## test handle NULL of lead

statement ok
create table t1(v1 int);

statement ok
insert into t1 values (1);

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

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

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

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

statement ok
insert into t1 values (2);

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

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

statement ok
DROP TABLE t1;
# TODO: Port this bug fix: https://github.com/apache/datafusion/pull/12811
# statement ok
# create table t1(v1 int);
#
# statement ok
# insert into t1 values (1);
#
# query B
# SELECT LEAD(NULL, 0, false) OVER () FROM t1;
# ----
# NULL
#
# query B
# SELECT LAG(NULL, 0, false) OVER () FROM t1;
# ----
# NULL
#
# query B
# SELECT LEAD(NULL, 1, false) OVER () FROM t1;
# ----
# false
#
# query B
# SELECT LAG(NULL, 1, false) OVER () FROM t1;
# ----
# false
#
# statement ok
# insert into t1 values (2);
#
# query B
# SELECT LEAD(NULL, 1, false) OVER () FROM t1;
# ----
# NULL
# false
#
# query B
# SELECT LAG(NULL, 1, false) OVER () FROM t1;
# ----
# false
# NULL
#
# statement ok
# DROP TABLE t1;

## end test handle NULL of lead

0 comments on commit 270a203

Please sign in to comment.