Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: fix duplicate column bug in subquery support #2362

Merged
merged 2 commits into from
Apr 28, 2022

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Apr 27, 2022

Which issue does this PR close?

N/A

Rationale for this change

This is a follow-up to the recently merged subquery expression support and fixes a bug where a schema was being extended rather than merged (which handles duplicate columns correctly). Without this fix, the test added in this PR will fail with a "Schema contains duplicate qualified field name" error due to both the subquery input and the outer query containing fields from the table "person".

What changes are included in this PR?

Merge schemas.

Are there any user-facing changes?

No

@andygrove andygrove self-assigned this Apr 27, 2022
@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Apr 27, 2022
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍nice

@andygrove andygrove merged commit abed81b into apache:master Apr 28, 2022
@andygrove andygrove deleted the subquery-dupe-schema-fields branch April 28, 2022 18:29
@alamb
Copy link
Contributor

alamb commented Apr 28, 2022

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants