You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/06/10 17:00:07 UTC
[GitHub] [arrow-rs] alamb commented on a diff in pull request #1836: Add `quarter` support in `temporal`
alamb commented on code in PR #1836:
URL: https://github.com/apache/arrow-rs/pull/1836#discussion_r894727578
##########
arrow/src/compute/kernels/temporal.rs:
##########
@@ -183,6 +209,34 @@ where
Ok(b.finish())
}
+/// Extracts the quarter of a given temporal array as an array of integers
+pub fn quarter<T>(array: &PrimitiveArray<T>) -> Result<Int32Array>
Review Comment:
FWIW there was a similar PR from @ovr in DataFusion https://github.com/apache/arrow-datafusion/pull/1667/files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org