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 quarter support in temporal kernels #1835

Closed
MazterQyou opened this issue Jun 10, 2022 · 0 comments · Fixed by #1836
Closed

Add quarter support in temporal kernels #1835

MazterQyou opened this issue Jun 10, 2022 · 0 comments · Fixed by #1836
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog

Comments

@MazterQyou
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Getting date's quarter is widely supported across different RDBMS and should be trivial to implement.
This will allow, for instance, extending apache/arrow-datafusion's date_part SQL builtin to support quarter field extraction.

Describe the solution you'd like
temporal::quarter should return a value in range of 1-4, depending on the quarter of the year.

Describe alternatives you've considered
N/A

Additional context
N/A

@MazterQyou MazterQyou added the enhancement Any new improvement worthy of a entry in the changelog label Jun 10, 2022
@alamb alamb added the arrow Changes to the arrow crate label Jun 23, 2022
@alamb alamb changed the title Add quarter support in temporal Add quarter support in temporal kernels Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants