-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10163 from Mytherin/issue10074
Fix #10074 - for materialized CTEs the final result names are not influenced by the aliases. Only the names of the CTE itself are influenced by the aliases.
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# name: test/sql/cte/cte_colname_issue_10074.test | ||
# description: Issue #10074 - CTE returns wrong column name | ||
# group: [cte] | ||
|
||
statement ok | ||
pragma enable_verification | ||
|
||
statement ok | ||
create table t as with q(id,s) as (values(1,42)), | ||
a(s)as materialized(select 42) | ||
select id from q join a on q.s=a.s | ||
|
||
query I | ||
select id from t | ||
---- | ||
1 |