Skip to content

Commit 43bb137

Browse files
authored
Merge pull request JerryLead#66 from lukasnalezenec/patch-2
Typo 2 in 2-JobLogicalPlan.md
2 parents 6bc49f6 + 6c9f30b commit 43bb137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EnglishVersion/2-JobLogicalPlan.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ To understand `coalesce()`, we need to know **the relationship between `Coalesce
244244
- for each partition, every record is assigned a key which is an increasing number.
245245
- hash(key) leads to a uniform records distribution on all different partitions.
246246

247-
In the second example, every record in `RDD a` is combined with a increasing key (on the left side of the pair). The key of the first record in each partition is equal to `(new Random(index)).nextInt(numPartitions)`, where `index` is the index of the partition and `numPartitions` is the # of partitions in `CoalescedRDD`. The following keys increase by 1. After shuffle, the records in `ShffledRDD` are uniformly distributed. The relationship between `ShuffledRDD` and `CoalescedRDD` is defined a complicated algorithm. In the end, keys are removed (`MappedRDD`).
247+
In the second example, every record in `RDD a` is combined with a increasing key (on the left side of the pair). The key of the first record in each partition is equal to `(new Random(index)).nextInt(numPartitions)`, where `index` is the index of the partition and `numPartitions` is the # of partitions in `CoalescedRDD`. The following keys increase by 1. After shuffle, the records in `ShuffledRDD` are uniformly distributed. The relationship between `ShuffledRDD` and `CoalescedRDD` is defined a complicated algorithm. In the end, keys are removed (`MappedRDD`).
248248

249249
**10) repartition(numPartitions)**
250250

0 commit comments

Comments
 (0)