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

Add Duration to ScalarValue #6838

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Jul 4, 2023

Which issue does this PR close?

Closes #.

Rationale for this change

The upstream arithmetic kernels, such as those in apache/arrow-rs#4465 return Duration for timestamp arithmetic. See apache/arrow-rs#3964 for further discussion on why duration is preferable to interval (TLDR: they're faster and less ambiguous). In order to incorporate these kernels #6832 we need scalar support for durations

What changes are included in this PR?

Are these changes tested?

Not explicitly, but the exhaustive matches combined with the copy-pasted macros makes me unsure if this would add much value

Are there any user-facing changes?

@tustvold tustvold merged commit 07a721f into apache:main Jul 4, 2023
2010YOUY01 pushed a commit to 2010YOUY01/arrow-datafusion that referenced this pull request Jul 5, 2023
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