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

Support IsDistinctFrom and IsNotDistinctFrom on interval types #6776

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

joroKr21
Copy link
Contributor

Which issue does this PR close?

Closes #6774.

Rationale for this change

Eq and NotEq work fine on intervals. This PR extends support to IsDistinctFrom and IsNotDistinctFrom.

What changes are included in this PR?

  • Changed the kernels to work on ArrowPrimitiveType instead of ArrowNumericType.
  • Added interval types to the binary_array_op macro.

Are these changes tested?

Tested in interval.slt

Are there any user-facing changes?

Yes, IsDistinctFrom and IsNotDistinctFrom work on interval types.

@github-actions github-actions bot added core Core DataFusion crate physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt) labels Jun 27, 2023
@jackwener jackwener changed the title Enable IsDistinctFrom and IsNotDistinctFrom on interval types Support IsDistinctFrom and IsNotDistinctFrom on interval types Jun 27, 2023
@Dandandan Dandandan merged commit 143ef16 into apache:main Jun 27, 2023
@Dandandan Dandandan deleted the feature/distinct-interval branch June 27, 2023 11:32
@Dandandan
Copy link
Contributor

Thank you @joroKr21 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support IsDistinctFrom and IsNotDistinctFrom on interval types
3 participants