-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cannot create a materialized view with struct column (#3078)
Since field desc column not use as column, so we don't need field column desc have column id, remove the generate column id function to fix the problem.
- Loading branch information
Showing
4 changed files
with
34 additions
and
25 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,26 @@ | ||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
create table st (v1 int, v2 struct<v1 int, v2 struct<v1 int, v2 int>>); | ||
|
||
statement ok | ||
create materialized view mv1 as select (v2).v2 from st; | ||
|
||
statement ok | ||
insert into st values(1,(1,(1,2))); | ||
|
||
statement ok | ||
insert into st values(1,(1,(1,3))); | ||
|
||
query I | ||
select * from mv1; | ||
---- | ||
(1,2) | ||
(1,3) | ||
|
||
statement ok | ||
drop materialized view mv1 | ||
|
||
statement ok | ||
drop table st |
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