You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/04/19 16:22:29 UTC
[GitHub] [spark] dongjoon-hyun commented on a change in pull request #28173:
[SPARK-31389][SQL][TESTS] Add codegen-off test coverage for some tests in
SQLMetricsSuite
dongjoon-hyun commented on a change in pull request #28173: [SPARK-31389][SQL][TESTS] Add codegen-off test coverage for some tests in SQLMetricsSuite
URL: https://github.com/apache/spark/pull/28173#discussion_r410939829
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
##########
@@ -82,11 +82,14 @@ class SQLMetricsSuite extends SharedSparkSession with SQLMetricsTestUtils {
test("Filter metrics") {
// Assume the execution plan is
// PhysicalRDD(nodeId = 1) -> Filter(nodeId = 0)
- val df = person.filter('age < 25)
- testSparkPlanMetrics(df, 1, Map(
- 0L -> (("Filter", Map(
- "number of output rows" -> 1L))))
- )
+ Seq((0L, false), (1L, true)).foreach { case (nodeId, enableWholeStage) =>
Review comment:
Ur, `nodeId` is not a metric, isn't it?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org