Skip to content

fix: Add output to Comet operators equal and hashCode#902

Merged
viirya merged 2 commits intoapache:mainfrom
viirya:fix_eq
Sep 2, 2024
Merged

fix: Add output to Comet operators equal and hashCode#902
viirya merged 2 commits intoapache:mainfrom
viirya:fix_eq

Conversation

@viirya
Copy link
Copy Markdown
Member

@viirya viirya commented Sep 2, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

During debugging the last test failure in #893, it is caused by incorrectly exchange reuse of two Comet hash aggregate operators. Currently Comet hash aggregate operator's equal and hashCode don't include output. So if two hash operators have same input, mode, etc, they will be wrongly considered equal and cause the issue.

This patch add output to all Comet operators' equal and hashCode methods.

What changes are included in this PR?

How are these changes tested?

Copy link
Copy Markdown
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 @viirya

@viirya viirya merged commit 033fe6f into apache:main Sep 2, 2024
@viirya
Copy link
Copy Markdown
Member Author

viirya commented Sep 2, 2024

Thanks @andygrove

@viirya viirya deleted the fix_eq branch September 2, 2024 23:42
coderfender pushed a commit to coderfender/datafusion-comet that referenced this pull request Dec 13, 2025
* fix: Add output to Comet operators equal and hashCode

* Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants