MaxGekk commented on issue #24195: [SPARK-25496][SQL] Deprecate from_utc_timestamp and to_utc_timestamp URL: https://github.com/apache/spark/pull/24195#issuecomment-519176604 > Of course, I could try to compute the time-dependent offset and shift by it. But then I would start implementing timezone-logic, which is tricky to get right. It seems you need a function which takes timestamps and zone id columns and returns zone offset as day-second interval. Like the code: ``` zoneId.getRules().getOffset(instant) ``` You can turn on `spark.sql.datetime.java8API.enabled` and write an UDF which takes an instance of `java.time.Instant` and a string with zone id.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
