HyukjinKwon edited a comment on issue #24946: [SPARK-27234][SS][PYTHON] Use InheritableThreadLocal for current epoch in EpochTracker (to support Python UDFs) URL: https://github.com/apache/spark/pull/24946#issuecomment-505662431 In case of `org.apache.spark.TaskContext`, looks it's manually set for Python's writer thread: https://github.com/apache/spark/blob/6d441dcdc68dae886e375794a55658f70cd18d9d/core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala#L203 and the information are (de)serialized into Python worker, `TaskContext` instance is constructed and used. I think it works too but I thought it's better to isolate this logic out of Python. Python runners are in core and this code is in SQL FWIW. We should move the codes around to mimic this approach.
---------------------------------------------------------------- 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]
