Skip to content

Conversation

@gandronchik
Copy link
Contributor

@gandronchik gandronchik commented Jun 3, 2022

Which issue does this PR close?

Not exists

Rationale for this change

For now, Union Inputs Projections can have different schemas (because of forcing changing alias name to "column{}"). In case you want to recreate Union from these Inputs, you can catch an exception, because of different schemas.

What changes are included in this PR?

  • Fix Union Inputs Schemas

Are there any user-facing changes?

No

Hello! I am an employee of Cube.js. We do post-processing of logical plan in our project and in some cases, we unwrap Union and build it back. And we catch an exception because of wrong schemas.

@github-actions github-actions bot added datafusion logical-expr Logical plan and expressions sql SQL Planner labels Jun 3, 2022
@gandronchik gandronchik marked this pull request as draft June 3, 2022 10:51
@gandronchik gandronchik marked this pull request as ready for review June 3, 2022 11:18
@andygrove
Copy link
Member

@gandronchik We have a PR template in place that prompts for information that is helpful for reviewers. Could you fill out the description please otherwise I have no idea what this PR is for or what issue it is closing.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

The code changes look reasonable. I will review again once the PR description is updated.

@alamb alamb marked this pull request as draft June 6, 2022 19:07
@alamb
Copy link
Contributor

alamb commented Jun 6, 2022

Changing to draft so it is easy to see it has pending changes

@gandronchik gandronchik marked this pull request as ready for review June 10, 2022 08:00
Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @gandronchik

@andygrove andygrove merged commit f37dd7c into apache:master Jun 11, 2022
waynexia pushed a commit to waynexia/arrow-datafusion that referenced this pull request Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants