Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
3.0.0
-
None
-
None
Description
to_utc_timestamp and from_utc_timestamp are deprecated in Spark 3.0. Details should be contain in Spark 3.0 Spark Migration guide.
0: jdbc:hive2://10.18.19.208:23040/default> SELECT from_utc_timestamp('2016-08-31', 'Asia/Seoul');
Error: org.apache.spark.sql.AnalysisException: The from_utc_timestamp function has been disabled since Spark 3.0.Set spark.sql.legacy.utcTimestampFunc.enabled to true to enable this function.;; line 1 pos 7 (state=,code=0)
0: jdbc:hive2://10.18.19.208:23040/default> SELECT to_utc_timestamp('2016-08-31', 'Asia/Seoul');
Error: org.apache.spark.sql.AnalysisException: The to_utc_timestamp function has been disabled since Spark 3.0. Set spark.sql.legacy.utcTimestampFunc.enabled to true to enable this function.;; line 1 pos 7 (state=,code=0)