mbutrovich commented on code in PR #4267:
URL: https://github.com/apache/datafusion-comet/pull/4267#discussion_r3227491022
##########
spark/src/main/scala/org/apache/comet/CometExecIterator.scala:
##########
@@ -127,7 +127,12 @@ class CometExecIterator(
memoryConfig.memoryLimitPerTask,
taskAttemptId,
taskCPUs,
- keyUnwrapper)
+ keyUnwrapper,
+ // Capture the Spark task thread's TaskContext at `createPlan` time.
Stashed native-side
+ // in the ExecutionContext and passed through the JVM UDF bridge so that
Tokio workers
+ // running JVM UDFs see the real `TaskContext` via their thread-local.
See
+ // `CometUdfBridge.evaluate` and `CometTaskContextShim` for the receive
side.
+ TaskContext.get())
Review Comment:
yes, peeling this off as a separate PR
--
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]