luoyuqinlaura commented on code in PR #59966:
URL: https://github.com/apache/spark/pull/59966#discussion_r4647394580
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/ui/SQLAppStatusListenerSuite.scala:
##########
@@ -1045,6 +1072,31 @@ private case class MyPlan(sc: SparkContext,
expectedValue: Long, expectedValue2:
}
}
+/**
+ * A dummy [[org.apache.spark.sql.execution.SparkPlan]] that posts several
driver accumulator
+ * updates for the same accumulator id, one per value.
+ */
+private case class MyPlanWithRepeatedDriverAccumUpdates(sc: SparkContext,
values: Seq[Long])
+ extends LeafExecNode {
+
+ override def sparkContext: SparkContext = sc
+ override def output: Seq[Attribute] = Seq()
+
+ override val metrics: Map[String, SQLMetric] = Map(
+ "dummy" -> SQLMetrics.createMetric(sc, "dummy"))
Review Comment:
The test now uses a size metric
--
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]