-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(stream): use columnar eval for temporal join non-lookup conds (
#15228) Signed-off-by: TennyZhuang <[email protected]>
- Loading branch information
1 parent
c06bec5
commit 7fe410c
Showing
3 changed files
with
173 additions
and
52 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
e2e_test/streaming/temporal_join/temporal_join_non_loopup_cond.slt
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,51 @@ | ||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
create table stream(id1 int, a1 int, b1 int) APPEND ONLY; | ||
|
||
statement ok | ||
create table version(id2 int, a2 int, b2 int, primary key (id2)); | ||
|
||
statement ok | ||
create materialized view v as select id1, a1, id2, a2 from stream left join version FOR SYSTEM_TIME AS OF PROCTIME() on id1 = id2 and a1 > a2; | ||
|
||
statement ok | ||
insert into stream values(1, 11, 111); | ||
|
||
statement ok | ||
insert into version values(1, 12, 111); | ||
|
||
statement ok | ||
insert into stream values(1, 13, 111); | ||
|
||
statement ok | ||
delete from version; | ||
|
||
query IIII rowsort | ||
select * from v; | ||
---- | ||
1 11 NULL NULL | ||
1 13 1 12 | ||
|
||
statement ok | ||
insert into version values(2, 22, 222); | ||
|
||
statement ok | ||
insert into stream values(2, 23, 222); | ||
|
||
query IIII rowsort | ||
select * from v; | ||
---- | ||
1 11 NULL NULL | ||
1 13 1 12 | ||
2 23 2 22 | ||
|
||
statement ok | ||
drop materialized view v; | ||
|
||
statement ok | ||
drop table stream; | ||
|
||
statement ok | ||
drop table version; |
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 |
---|---|---|
|
@@ -68,6 +68,3 @@ drop table stream cascade; | |
|
||
statement ok | ||
drop table version cascade; | ||
|
||
|
||
|
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