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


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala:
##########
@@ -4981,8 +4981,13 @@ case class ConvertTimezone(
           - "SECOND"
           - "MILLISECOND"
           - "MICROSECOND"
+          - "NANOSECOND" - only for nanosecond-precision timestamp inputs 
(TIMESTAMP_NTZ(p) /
+            TIMESTAMP_LTZ(p), p in [7, 9]); the result is floored to the 
input's precision, so a
+            quantity finer than the type's step (10^(9-p) ns) is truncated to 
it
       * quantity - this is the number of units of time that you want to add.
-      * timestamp - this is a timestamp (w/ or w/o timezone) to which you want 
to add.
+      * timestamp - this is a timestamp (w/ or w/o timezone) to which you want 
to add. A
+        nanosecond-precision timestamp keeps its sub-microsecond fraction; 
units of MICROSECOND or
+        coarser leave the fraction unchanged.
   """,

Review Comment:
   thanks for noticing, updated.



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