viirya commented on a change in pull request #31707:
URL: https://github.com/apache/spark/pull/31707#discussion_r586816998



##########
File path: core/src/main/scala/org/apache/spark/rdd/RDD.scala
##########
@@ -2022,7 +2022,7 @@ abstract class RDD[T: ClassTag](
   // TODO: make it public so users can set deterministic level to their custom 
RDDs.
   // TODO: this can be per-partition. e.g. UnionRDD can have different 
deterministic level for
   // different partitions.
-  private[spark] final lazy val outputDeterministicLevel: 
DeterministicLevel.Value = {
+  private[spark] final def outputDeterministicLevel: DeterministicLevel.Value 
= {

Review comment:
       I'd prefer not to expose it here. At least I don't hear a requirement to 
expose this.

##########
File path: core/src/test/scala/org/apache/spark/util/JsonProtocolSuite.scala
##########
@@ -1171,6 +1171,7 @@ private[spark] object JsonProtocolSuite extends 
Assertions {
       |          "Replication": 1
       |        },
       |        "Barrier" : false,
+      |        "DeterministicLevel" : "DETERMINATE",

Review comment:
       Okay. let me add a test case for 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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to