-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: column index mapping bug of stream_delta_join (#14398)
- Loading branch information
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
e2e_test/streaming/delta_join/delta_join_upstream_with_index_different_types.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,47 @@ | ||
statement ok | ||
set rw_implicit_flush = true; | ||
|
||
statement ok | ||
set rw_streaming_enable_delta_join = true; | ||
|
||
statement ok | ||
create table A (k1 numeric, k2 smallint, v int); | ||
|
||
statement ok | ||
create index Ak1 on A(k1) include(k1,k2,v); | ||
|
||
statement ok | ||
create table B (k1 numeric, k2 smallint, v int); | ||
|
||
statement ok | ||
create index Bk1 on B(k1) include(k1,k2,v); | ||
|
||
statement ok | ||
insert into A values(1, 2, 4); | ||
|
||
statement ok | ||
insert into B values(1, 2, 4); | ||
|
||
statement ok | ||
create MATERIALIZED VIEW m1 as select A.v, B.v as Bv from A join B using(k1); | ||
|
||
|
||
query I | ||
SELECT * from m1; | ||
---- | ||
4 4 | ||
|
||
statement ok | ||
drop MATERIALIZED VIEW m1; | ||
|
||
statement ok | ||
drop index Ak1; | ||
|
||
statement ok | ||
drop index Bk1; | ||
|
||
statement ok | ||
drop table A; | ||
|
||
statement ok | ||
drop table B; |
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
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
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