Spenserrrr commented on code in PR #59892:
URL: https://github.com/apache/spark/pull/59892#discussion_r4416916702
##########
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:
I think this is a valid concern. Pipeline mode needs a common design for
per-thread collection and phase attributions.
Right now, the pipeline mode is disabled by default, so I'd like to keep the
timing logic simple in this PR. I prefer to address the pipeline mode in a
separate follow-up once we have more detailed timing for other eval types.
--
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]