Skip to content

Commit

Permalink
GetTimestamp fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
NVnavkumar committed Jan 3, 2024
1 parent e4237f9 commit 02eac1d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ abstract class GpuToTimestamp
val tmp = lhs.dataType match {
case _: StringType =>
// rhs is ignored we already parsed the format
if (getTimeParserPolicy == LegacyTimeParserPolicy) {
val res = if (getTimeParserPolicy == LegacyTimeParserPolicy) {
parseStringAsTimestampWithLegacyParserPolicy(
lhs,
sparkFormat,
Expand All @@ -871,6 +871,11 @@ abstract class GpuToTimestamp
DType.TIMESTAMP_MICROSECONDS,
failOnError)
}
if (GpuOverrides.isUTCTimezone(zoneId)) {
res
} else {
GpuTimeZoneDB.fromTimestampToUtcTimestamp(res, zoneId)
}
case _: DateType =>
timeZoneId match {
case Some(_) =>
Expand Down

0 comments on commit 02eac1d

Please sign in to comment.