jiwen624 commented on code in PR #56363:
URL: https://github.com/apache/spark/pull/56363#discussion_r3384759071
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala:
##########
@@ -125,6 +125,22 @@ class SQLMetricsSuite extends SharedSparkSession with
SQLMetricsTestUtils
}
}
+ test("SPARK-57313: Sample numOutputRows metric") {
+ Seq("false", "true").foreach { enableWholeStage =>
+ withSQLConf(SQLConf.WHOLESTAGE_CODEGEN_ENABLED.key -> enableWholeStage) {
+ val df = spark.range(0, 1000, 1, 1)
+ .sample(withReplacement = false, fraction = 0.5, seed = 1)
Review Comment:
Thanks! Updated the test.
--
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]