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 bug in optimizing a nested count #8459

Merged
merged 8 commits into from
Dec 7, 2023

Conversation

Dandandan
Copy link
Contributor

Which issue does this PR close?

Closes #8450

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the optimizer Optimizer rules label Dec 7, 2023
@Dandandan Dandandan changed the title Fix nested count Fix bug in optimizing a nested count Dec 7, 2023
Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

Maybe also add one test to sqllogictest too?

Co-authored-by: Liang-Chi Hsieh <viirya@gmail.com>
@Dandandan
Copy link
Contributor Author

Maybe also add one test to sqllogictest too?

Good one, will add

@Dandandan Dandandan merged commit d5dd535 into apache:main Dec 7, 2023
22 checks passed
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Dec 15, 2023
* Fix nested count optimization

* fmt

* extend comment

* Clippy

* Update datafusion/optimizer/src/optimize_projections.rs

Co-authored-by: Liang-Chi Hsieh <viirya@gmail.com>

* Add sqllogictests

* Fmt

---------

Co-authored-by: Liang-Chi Hsieh <viirya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested count fails
2 participants