tustvold commented on code in PR #5831:
URL: https://github.com/apache/arrow-rs/pull/5831#discussion_r1623201864


##########
arrow-cast/src/cast/mod.rs:
##########
@@ -4791,9 +4840,15 @@ mod tests {
 
         let string_array = cast(&timestamp_array, &DataType::Utf8).unwrap();
         let result = string_array.as_string::<i32>();
-        assert_eq!("2000-01-01T00:00:00.123", result.value(0));
-        assert_eq!("2010-01-01T00:00:00.123", result.value(1));
+        assert_eq!("2000-01-01T07:00:00.123", result.value(0));
+        assert_eq!("2010-01-01T07:00:00.123", result.value(1));
         assert!(result.is_null(2));
+
+        let array = 
StringArray::from(vec!["2010-01-01T00:00:00.123456+08:00"]);

Review Comment:
   We now have a difference in behaviour here, which I think is kind of 
unfortunate - 
https://github.com/apache/arrow-rs/pull/4201#discussion_r1192301482



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to