-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storage): support excluded bound in storage table
- Loading branch information
Showing
2 changed files
with
55 additions
and
11 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,54 @@ | ||
# This is a test on a panic in select with excluded upper bound: https://github.com/risingwavelabs/risingwave/issues/16219 | ||
|
||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
create table t (a varchar); | ||
|
||
statement ok | ||
create materialized view mv as select * from t order by a desc; | ||
|
||
query T | ||
select * from mv where a < ''; | ||
---- | ||
|
||
query T | ||
select * from mv where a > ''; | ||
---- | ||
|
||
query T | ||
select * from mv where a <= ''; | ||
---- | ||
|
||
query T | ||
select * from mv where a >= ''; | ||
---- | ||
|
||
statement ok | ||
INSERT INTO t VALUES ('foo'); | ||
|
||
query T | ||
select * from mv where a < ''; | ||
---- | ||
|
||
query T | ||
select * from mv where a > ''; | ||
---- | ||
foo | ||
|
||
query T | ||
select * from mv where a <= ''; | ||
---- | ||
|
||
|
||
query T | ||
select * from mv where a >= ''; | ||
---- | ||
foo | ||
|
||
statement ok | ||
drop materialized view mv; | ||
|
||
statement ok | ||
drop table t; |
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