Github user dilipbiswal commented on a diff in the pull request:
https://github.com/apache/spark/pull/15332#discussion_r81649623
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
---
@@ -206,6 +206,22 @@ object DateTimeUtils {
(day.toInt, micros * 1000L)
}
+ /*
+ * Converts the timestamp to milliseconds since epoc. In spark timestamp
values have microseconds
+ * precision, so this conversion is lossy.
+ */
+ def toMillis(us: SQLTimestamp): Long = {
+ val julian_us = us + JULIAN_DAY_OF_EPOCH * MICROS_PER_DAY
--- End diff --
@davies On your second comment , let me please get back to you.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]