You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
to_utc_timestamp and from_utc_timestamp fallback when TZ is supported time zone
Steps/Code to reproduce bug
export TZ = Asia/Shanghai
select:
from_utc_timestamp(ts_col, tz)
to_utc_timestamp(ts_col, tz)
Reports: Set both of the timezones to UTC to enable class org.apache.spark.sql.catalyst.expressions
!Expression <FromUTCTimestamp> from_utc_timestamp(structF#15.timestampF, Asia/Shanghai) cannot run on GPU because class org.apache.spark.sql.catalyst.expressions.FromUTCTimestamp is not supported with timezone settings: (JVM: Asia/Shanghai, session: Asia/Shanghai). Set both of the timezones to UTC to enable class org.apache.spark.sql.catalyst.expressions.
The text was updated successfully, but these errors were encountered:
to_utc_timestamp and from_utc_timestamp are not time zone aware. It means they are not related to session time zone.
They both take a timezone parameter, usage:
from_utc_timestamp(ts_col, tz)
to_utc_timestamp(ts_col, tz)
So should not check the session time zone, only check time zone in the parameter is enough.
Describe the bug
to_utc_timestamp and from_utc_timestamp fallback when TZ is supported time zone
Steps/Code to reproduce bug
export TZ = Asia/Shanghai
select:
Reports: Set both of the timezones to UTC to enable class org.apache.spark.sql.catalyst.expressions
The text was updated successfully, but these errors were encountered: