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/08/05 17:02:23 UTC

[GitHub] [arrow-rs] viirya commented on a diff in pull request #2326: temporal conversion functions should work on negative input properly

viirya commented on code in PR #2326:
URL: https://github.com/apache/arrow-rs/pull/2326#discussion_r939002183


##########
arrow/src/temporal_conversions.rs:
##########
@@ -154,3 +179,64 @@ pub fn duration_us_to_duration(v: i64) -> Duration {
 pub fn duration_ns_to_duration(v: i64) -> Duration {
     Duration::nanoseconds(v)
 }
+
+#[cfg(test)]
+mod tests {
+    use crate::temporal_conversions::{
+        date64_to_datetime, timestamp_ms_to_datetime, timestamp_ns_to_datetime,
+        timestamp_us_to_datetime,
+    };
+    use chrono::NaiveDateTime;
+
+    #[test]

Review Comment:
   Yea, I will add a few more tests.



-- 
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