maropu commented on a change in pull request #28173: [SPARK-31389][SQL][TESTS]
Ensure all tests in SQLMetricsSuite run with both codegen on and off
URL: https://github.com/apache/spark/pull/28173#discussion_r409936125
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
##########
@@ -324,17 +333,20 @@ class SQLMetricsSuite extends SharedSparkSession with
SQLMetricsTestUtils {
// +- Exchange(nodeId = 5)
// +- Project(nodeId = 6)
// +- LocalTableScan(nodeId = 7)
- val df = df1.join(df2, "key")
- testSparkPlanMetrics(df, 1, Map(
- 1L -> (("ShuffledHashJoin", Map(
- "number of output rows" -> 2L))),
- 2L -> (("Exchange", Map(
- "shuffle records written" -> 2L,
- "records read" -> 2L))),
- 5L -> (("Exchange", Map(
- "shuffle records written" -> 10L,
- "records read" -> 10L))))
- )
+ Seq((1L, 2L, 5L, false), (2L, 3L, 7L, true)).foreach{args =>
Review comment:
nit: `.foreach{args =>` -> `.foreach { args =>`
----------------------------------------------------------------
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.
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]