zhztheplayer commented on code in PR #7842:
URL: https://github.com/apache/incubator-gluten/pull/7842#discussion_r1832263637


##########
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxMetricsApi.scala:
##########
@@ -582,4 +582,16 @@ class VeloxMetricsApi extends MetricsApi with Logging {
 
   override def genSampleTransformerMetricsUpdater(metrics: Map[String, 
SQLMetric]): MetricsUpdater =
     new SampleMetricsUpdater(metrics)
+
+
+  override def genUnionTransformerMetrics(sparkContext: SparkContext): 
Map[String, SQLMetric] = Map(
+    "numOutputRows" -> SQLMetrics.createMetric(sparkContext, "number of output 
rows"),
+    "outputVectors" -> SQLMetrics.createMetric(sparkContext, "number of output 
vectors"),
+    "outputBytes" -> SQLMetrics.createSizeMetric(sparkContext, "number of 
output bytes"),
+    "wallNanos" -> SQLMetrics.createNanoTimingMetric(sparkContext, "time of 
sample"),
+    "cpuCount" -> SQLMetrics.createMetric(sparkContext, "cpu wall time count")
+  )
+
+  // TODO
+  override def genUnionTransformerMetricsUpdater(metrics: Map[String, 
SQLMetric]): MetricsUpdater = MetricsUpdater.Todo

Review Comment:
   TODO



-- 
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]

Reply via email to