Jefffrey commented on code in PR #10130:
URL: https://github.com/apache/arrow-rs/pull/10130#discussion_r3400721318


##########
arrow-array/src/array/primitive_array.rs:
##########
@@ -1360,21 +1360,30 @@ impl<T: ArrowPrimitiveType> std::fmt::Debug for 
PrimitiveArray<T> {
                             // if the time zone is valid, construct a 
DateTime<Tz> and format it as rfc3339
                             Ok(tz) => match as_datetime_with_timezone::<T>(v, 
tz) {
                                 Some(datetime) => write!(f, "{}", 
datetime.to_rfc3339()),
-                                None => write!(f, "null"),
+                                None => write!(
+                                    f,
+                                    "Cast error: Failed to convert {v} to 
timestamp for {data_type}"

Review Comment:
   same error message format as date & time branches above



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