cloud-fan commented on PR #52980: URL: https://github.com/apache/spark/pull/52980#issuecomment-3530743074
Spark has both `TimestampType` (with local timezone) and `TimestampNTZType` (no timezone). I'm not sure how we map these two types to python objects, but in JVM, we map them to `java.sql.Timestamp` and `LocalDateTime`. That being said, we should never rely on the local machine timezone. We should either respect the session timezone (specified by `spark.sql.session.timeZone` and it has a default value if not set), or the python objects should be timezone agnostic. -- 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]
