-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(batch): fix batch range scan for null (#13524)
- Loading branch information
Showing
2 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
CREATE TABLE t0(c0 INT, c1 INT, PRIMARY KEY(c1, c0)); | ||
|
||
statement ok | ||
INSERT INTO t0(c0) VALUES (1); | ||
|
||
query II rowsort | ||
SELECT * FROM t0 WHERE (c1 > 1) IS NULL; | ||
---- | ||
1 NULL | ||
|
||
query II rowsort | ||
SELECT * FROM t0 WHERE (c1 > 1); | ||
---- | ||
|
||
statement ok | ||
drop table t0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters