xuanyuanking commented on a change in pull request #23327: [SPARK-26222][SQL] Track file listing time URL: https://github.com/apache/spark/pull/23327#discussion_r242946090
########## 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: Copy, I simply this by returning tuple of both result and phase summary. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org