diff --git a/docs/scala-programming-guide.md b/docs/scala-programming-guide.md index a07cd2e0a32a2..a9d7d87e231a6 100644 --- a/docs/scala-programming-guide.md +++ b/docs/scala-programming-guide.md @@ -189,7 +189,7 @@ The following tables list the transformations and actions currently supported (s
numTasks
argument to set a different number of tasks.
+Note: By default, if the RDD already has a partitioner, the task number is decided by the partition number of the partitioner, or else relies on the value of spark.default.parallelism
if the property is set , otherwise depends on the partition number of the RDD. You can pass an optional numTasks
argument to set a different number of tasks.