gaogaotiantian commented on code in PR #53161:
URL: https://github.com/apache/spark/pull/53161#discussion_r2557567172
##########
python/pyspark/worker.py:
##########
@@ -3304,8 +3305,12 @@ def main(infile, outfile):
sys.exit(-1)
start_faulthandler_periodic_traceback()
- # Use the local timezone to convert the timestamp
- tz = datetime.datetime.now().astimezone().tzinfo
+ tzname = os.environ.get("SPARK_SESSION_LOCAL_TIMEZONE", None)
Review Comment:
That's correct, but it doesn't seem like
`spark.session.conf.set("spark.sql.session.timeZone")` impacts the result. This
only works when I create the session with the conf. Any ideas? I can
investigate if that's an issue or we want to understand it. I just thought you
might understand immediately.
--
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]