Skip to content

[fix](nereids) Fix not check when duplicated column names are in cte select list - #42400

Merged
morrySnow merged 2 commits into
apache:masterfrom
seawinde:fix_subquery_column_name_dup_not_check
Oct 31, 2024
Merged

[fix](nereids) Fix not check when duplicated column names are in cte select list#42400
morrySnow merged 2 commits into
apache:masterfrom
seawinde:fix_subquery_column_name_dup_not_check

Conversation

@seawinde

Copy link
Copy Markdown
Member

Proposed changes

This is brought by #21727
If you run query as following:
Should throw analyze exception, because the duplicated column name in tmp1,but now not
this pr fix this

 with tmp1 as (
select unique_id, unique_id from test_table
)
select*from tmp1;

@doris-robot

Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@seawindeseawinde changed the title [fix](test) Fix not check when duplicated column names are in cte select list[fix](nereids) Fix not check when duplicated column names are in cte select listOct 24, 2024
@seawinde

Copy link
Copy Markdown
MemberAuthor

run buildall

@seawinde

Copy link
Copy Markdown
MemberAuthor

run buildall

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Oct 29, 2024
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@wm1581066wm1581066 added usercase Important user case type label dev/2.1.x labels Oct 30, 2024
@morrySnowmorrySnow added kind/behavior-changed and removed dev/2.1.x usercase Important user case type label labels Oct 31, 2024
@morrySnow
morrySnow merged commit fb7d030 into apache:masterOct 31, 2024
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Apr 24, 2026
…select list (apache#42400)
This is brought by apache#21727
If you run query as following:
Should throw analyze exception,
because the duplicated column name in `tmp1` but now not.
this pr fix this
with tmp1 as (
select unique_id, unique_id from test_table
)
select * from tmp1;
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.kind/behavior-changedreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@seawinde@doris-robot@starocean999@morrySnow@wm1581066