Skip to content

chore: use equals_datatype for BinaryExpr #16813

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

Merged
merged 2 commits into from
Jul 18, 2025
Merged

chore: use equals_datatype for BinaryExpr #16813

merged 2 commits into from
Jul 18, 2025

Conversation

comphead
Copy link
Contributor

Which issue does this PR close?

  • Closes #.

Rationale for this change

Current type check in BinaryExpr is erroneous(it doesn't consider element names diff for nested types) and the error message is overly unclear.

Found working on apache/datafusion-comet#1978

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Jul 18, 2025
Copy link
Contributor

@adriangb adriangb left a comment

Choose a reason for hiding this comment

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

Makes sense. Could you add a test?

@comphead
Copy link
Contributor Author

Makes sense. Could you add a test?

Added

@comphead comphead merged commit acff1b6 into apache:main Jul 18, 2025
27 checks passed
comphead added a commit to comphead/arrow-datafusion that referenced this pull request Jul 21, 2025
* chore: use `equals_datatype` instead of direct type comparison for `BinaryExpr`

* chore: use `equals_datatype` instead of direct type comparison for `BinaryExpr`

(cherry picked from commit acff1b6)
alamb pushed a commit that referenced this pull request Jul 22, 2025
* chore: use `equals_datatype` instead of direct type comparison for `BinaryExpr`

* chore: use `equals_datatype` instead of direct type comparison for `BinaryExpr`

(cherry picked from commit acff1b6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Changes to the physical-expr crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants