agrawaldevesh commented on a change in pull request #35005:
URL: https://github.com/apache/spark/pull/35005#discussion_r776932868
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala
##########
@@ -1457,8 +1458,29 @@ class DatasetSuite extends QueryTest
}
testCheckpointing("basic") {
- val ds = spark.range(10).repartition($"id" % 2).filter($"id" >
5).orderBy($"id".desc)
- val cp = if (reliable) ds.checkpoint(eager) else
ds.localCheckpoint(eager)
+ val ds = spark
+ .range(10)
+ // Num partitions is set to 1 to avoid a RangePartitioner in the
orderBy below
+ .repartition(1, $"id" % 2)
+ .filter($"id" > 5)
+ .orderBy($"id".desc)
+ @volatile var jobCounter = 0
+ spark.sparkContext.addSparkListener(new SparkListener {
Review comment:
Good call. I will use the withListener helper.
--
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]