stevomitric commented on code in PR #57680:
URL: https://github.com/apache/spark/pull/57680#discussion_r3749705105


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala:
##########
@@ -2407,6 +2407,91 @@ class DateExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
     }
   }
 
+  test("SPARK-57832: subtract nanosecond-precision timestamps") {
+    // The difference between two nanosecond timestamps is reported on the 
microsecond grid: only
+    // each operand's epochMicros participates, so the sub-microsecond 
remainder is truncated. The
+    // two operands below share the same wall clock down to the microsecond 
and differ only within

Review Comment:
   Rewrote so the first pair explains the day+0.123456s case and points 
(different days, .123456 vs .000000) to the second pair for the zero result



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to