rxin commented on a change in pull request #23327: [SPARK-26222][SQL] Track
file listing time
URL: https://github.com/apache/spark/pull/23327#discussion_r242655234
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/QueryPlanningTracker.scala
##########
@@ -87,6 +87,15 @@ object QueryPlanningTracker {
localTracker.set(tracker)
try f finally { localTracker.set(originalTracker) }
}
+
+ /** Record the phase by the passing in record function. */
+ def recordPhase[T](record: PhaseSummary => Unit)(f: => T): T = {
Review comment:
I find this function signature pretty confusing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]