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

fix: from_plan generate Agg can be with different schema. #6820

Merged
merged 3 commits into from
Jul 2, 2023

Conversation

jackwener
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

when from_plan param use different expr, it can generate different schema

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Jul 1, 2023
@@ -1229,6 +1223,7 @@ pub fn project(
plan: LogicalPlan,
expr: impl IntoIterator<Item = impl Into<Expr>>,
) -> Result<LogicalPlan> {
// TODO: move it into analyzer
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@jackwener jackwener merged commit d37351a into apache:main Jul 2, 2023
@jackwener jackwener deleted the agg branch July 2, 2023 13:08
jackwener added a commit to jackwener/arrow-datafusion that referenced this pull request Jul 3, 2023
jackwener added a commit to jackwener/arrow-datafusion that referenced this pull request Jul 3, 2023
jackwener added a commit to jackwener/arrow-datafusion that referenced this pull request Jul 3, 2023
jackwener added a commit that referenced this pull request Jul 4, 2023
* revert: from_plan keep same schema Project in #6595

* revert: from_plan keep same schema Agg/Window in #6820

* revert type coercion

* add comment
2010YOUY01 pushed a commit to 2010YOUY01/arrow-datafusion that referenced this pull request Jul 5, 2023
…che#6820)

* fix: from_plan generate Agg can be with different schema.

* fix: from_plan generate Window can be with different schema.
2010YOUY01 pushed a commit to 2010YOUY01/arrow-datafusion that referenced this pull request Jul 5, 2023
* revert: from_plan keep same schema Project in apache#6595

* revert: from_plan keep same schema Agg/Window in apache#6820

* revert type coercion

* add comment
yukkit pushed a commit to cnosdb/arrow-datafusion that referenced this pull request Jul 10, 2023
* revert: from_plan keep same schema Project in apache#6595

* revert: from_plan keep same schema Agg/Window in apache#6820

* revert type coercion

* add comment
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants