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

minor: reduce replication in date_bin implementation #5673

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Mar 21, 2023

Which issue does this PR close?

re #5643 and #5641

Rationale for this change

I saw a way to reduce some code duplication introduced in #5643 but felt it would not be fair to @Weijun-H to go back and forth more on that PR because #5643 implemented the desired behavior, and this is just a code cleanup

What changes are included in this PR?

refactor the date_bin implementation to have a single implementation for 2 and 3 argument forms

Are these changes tested?

Existing coverage

Are there any user-facing changes?

No

@github-actions github-actions bot added the physical-expr Physical Expressions label Mar 21, 2023
@alamb alamb merged commit ef89e1b into apache:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants