lichuang commented on code in PR #12352:
URL: https://github.com/apache/arrow-rs/pull/12352#discussion_r4779779892


##########
arrow-cast/src/cast/mod.rs:
##########
@@ -497,7 +497,9 @@ fn cast_reinterpret_arrays<I: ArrowPrimitiveType, O: 
ArrowPrimitiveType<Native =
 /// * Primitive to `List`: a list array with 1 value per slot is created
 /// * `Date32` and `Date64`: precision lost when going to higher interval
 /// * `Time32` and `Time64`: precision lost when going to higher interval
-/// * `Timestamp` and `Date{32|64}`: precision lost when going to higher 
interval
+/// * `Timestamp` and `Date{32|64}`: precision lost when going to higher 
interval.
+///   Casting a `Timestamp` to a coarser unit floors, so an instant before the 
Unix
+///   epoch stays in the coarser interval that contains it, matching the 
`Date32` cast

Review Comment:
   Fixed — the sentence now reads "as casting a `Timestamp` to `Date32` already 
does", which names both the source and target types.



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