xuanyuanking commented on a change in pull request #23396: [SPARK-26397][SQL]
Driver side only metrics support
URL: https://github.com/apache/spark/pull/23396#discussion_r246261251
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala
##########
@@ -88,7 +98,7 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] with
Logging with Serializ
/**
* @return [[SQLMetric]] for the `name`.
*/
- def longMetric(name: String): SQLMetric = metrics(name)
+ def longMetric(name: String): SQLMetric = allMetrics(name)
Review comment:
No problem, that's a clearer fix which only needs several lines code.
----------------------------------------------------------------
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]