gengliangwang commented on a change in pull request #33258:
URL: https://github.com/apache/spark/pull/33258#discussion_r667622302



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
##########
@@ -968,6 +968,11 @@ object DateTimeUtils {
    */
   def currentTimestamp(): Long = instantToMicros(Instant.now())
 
+  /**
+   * Obtains the current local date-time as microseconds since the epoch in 
the default time-zone.
+   */
+  def currentTimestampNTZ(): Long = localDateTimeToMicros(LocalDateTime.now())

Review comment:
       @beliefer I am +1 with @MaxGekk , we should respect the conf 
"spark.sql.session.timeZone" here.




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