cloud-fan commented on code in PR #37013:
URL: https://github.com/apache/spark/pull/37013#discussion_r910650152
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala:
##########
@@ -167,6 +167,21 @@ object DateTimeUtils {
ts
}
+ /**
+ * Converts microseconds since the epoch to an instance of
`java.sql.Timestamp`.
+ *
+ * @param micros The number of microseconds since
1970-01-01T00:00:00.000000Z.
+ * @return A `java.sql.Timestamp` from number of micros since epoch.
+ */
+ def toJavaTimestampNoRebase(micros: Long): Timestamp = {
Review Comment:
is it possible to share code with `toJavaTimestamp`? e.g.
```
def toJavaTimestamp ... {
toJavaTimestampNoRebase(rebaseGregorianToJulianMicros(micros))
}
```
--
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]