Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/18258#discussion_r121315825
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/metric/SQLMetrics.scala
---
@@ -103,13 +103,43 @@ object SQLMetrics {
}
/**
+ * Create a metric to report the average information (including min,
med, max) like
+ * avg hashmap probe. Because `SQLMetric` stores long values, we take
the ceil of the average
+ * values before storing them. This metric is used to record an average
value computed in the
+ * end of a task. It should be set once. The initial values (zeros) of
this metrics will be
+ * excluded after.
+ */
+ def createAverageMetric(sc: SparkContext, name: String): SQLMetric = {
+ // The final result of this metric in physical operator UI may looks
like:
+ // probe avg (min, med, max):
+ // (1, 6, 2)
--- End diff --
med is medium? why 6?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]