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

Feature/eliminate aggregate #28

Closed
wants to merge 31 commits into from

Conversation

mertak-synnada
Copy link

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

add additional tests for not removing cases
@mertak-synnada mertak-synnada self-assigned this Aug 2, 2024
@mertak-synnada mertak-synnada marked this pull request as ready for review August 2, 2024 10:56
Copy link
Collaborator

@ozankabak ozankabak left a comment

Choose a reason for hiding this comment

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

Let's see if we can fix the already existing rule instead of adding a new one. Also added a possible simplification to functional dependencies diff.

datafusion/common/src/functional_dependencies.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ozankabak ozankabak left a comment

Choose a reason for hiding this comment

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

Possible further simplifications

datafusion/optimizer/src/replace_distinct_aggregate.rs Outdated Show resolved Hide resolved
datafusion/optimizer/src/replace_distinct_aggregate.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ozankabak ozankabak left a comment

Choose a reason for hiding this comment

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

LGTM, ready to go

datafusion/common/src/functional_dependencies.rs Outdated Show resolved Hide resolved
@ozankabak
Copy link
Collaborator

Merged upstream.

@ozankabak ozankabak closed this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants