Yicong-Huang commented on code in PR #59892:
URL: https://github.com/apache/spark/pull/59892#discussion_r4543907501
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -5857,7 +5857,10 @@ object SQLConf {
val PYTHON_UDF_DETAILED_TIMING_ENABLED =
buildConf("spark.sql.execution.pythonUDF.detailedTiming.enabled")
.internal()
- .doc("When true, collect detailed timing metrics for supported Python
UDFs.")
+ .doc("When true, collect detailed timing metrics for supported Python
UDFs. " +
+ "With spark.python.udf.pipelined.enabled, phase timings can overlap
and their sum " +
+ "does not represent elapsed time. Exclude reports with nonzero " +
+ "pythonNumPipelinedTasks from additive phase breakdowns.")
Review Comment:
No need for locks now. Since detailed timing is now off in pipelined mode,
the reader thread's serializer records no read time, so only the main thread
writes phase entries to WorkerMetrics. If a later change brings detailed timing
back to pipelined mode, that design should add per-thread collection or locking
at that point.
<!-- SPARK_DEV_REVIEW_REPLY
{"feedback_id":"inline:4415984752","thread_id":"inline:4415984752","verdict_sha256":"86023269e4a062bf6d8a037abec7eebd2f8ff05a8b770b280831f41242d9c50b"}
-->
--
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]