sadikovi commented on a change in pull request #34596:
URL: https://github.com/apache/spark/pull/34596#discussion_r752884179
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TimestampFormatter.scala
##########
@@ -188,7 +193,13 @@ class DefaultTimestampFormatter(
override def parseWithoutTimeZone(s: String): Long = {
try {
-
DateTimeUtils.stringToTimestampWithoutTimeZoneAnsi(UTF8String.fromString(s))
+ val utf8Value = UTF8String.fromString(s)
+ val (_, zoneIdOpt, _) = DateTimeUtils.parseTimestampString(utf8Value)
Review comment:
I can take a look to see if we can avoid this double calls.
--
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]