-
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: stream backfill executor use correct schema (#12314)
Co-authored-by: Noel Kwan <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 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,31 @@ | ||
# https://github.com/risingwavelabs/risingwave/issues/12299 | ||
# TL;DR When upstream's stream key is not pk and the stream scan does not contain whole pk. | ||
|
||
statement ok | ||
create table t1( | ||
id bigint primary key, | ||
i bigint | ||
); | ||
|
||
statement ok | ||
create materialized view mv1 as select id, i from t1 order by id, i; | ||
|
||
statement ok | ||
insert into t1 values(1, 1); | ||
|
||
statement ok | ||
create materialized view mv2 as select id from mv1; | ||
|
||
query I | ||
select * from mv2; | ||
---- | ||
1 | ||
|
||
statement ok | ||
drop materialized view mv2; | ||
|
||
statement ok | ||
drop materialized view mv1; | ||
|
||
statement ok | ||
drop table t1; |
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