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 equality and comparison between interval arrays and scalars #6948

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

joroKr21
Copy link
Contributor

Which issue does this PR close?

Closes #6947.

Rationale for this change

More complete support for operations between interval types.

What changes are included in this PR?

Add missing cases for interval types to binary_array_op_dyn_scalar.

Are these changes tested?

Added .slt tests. Also added tests for the array-array and scalar-scalar cases that already work today but seem untested.

Are there any user-facing changes?

Yes, comparing an interval array with an interval scalar now works.

Add missing cases for interval types to `binary_array_op_dyn_scalar`.
Also added tests for the array-array and scalar-scalar cases
that already work today but seem untested.
@github-actions github-actions bot added physical-expr Physical Expressions core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jul 13, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @joroKr21

@alamb
Copy link
Contributor

alamb commented Jul 13, 2023

I have no comments to add -- the tests look very nice 👌

@alamb alamb merged commit 0433026 into apache:main Jul 13, 2023
@joroKr21 joroKr21 deleted the feature/interval-cmp branch July 14, 2023 04:38
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 interval equality and comparison between an array and a scalar
2 participants