spark-instrumented-optimizer/sql/core
yi.wu ef51ff9dc8 [SPARK-31082][CORE] MapOutputTrackerMaster.getMapLocation should handle last mapIndex correctly
### What changes were proposed in this pull request?

In `getMapLocation`, change the condition from `...endMapIndex < statuses.length` to `...endMapIndex <= statuses.length`.

### Why are the changes needed?

`endMapIndex` is exclusive, we should include it when comparing to `statuses.length`. Otherwise, we can't get the location for last mapIndex.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

Updated existed test.

Closes #27850 from Ngone51/fix_getmaploction.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2020-03-09 15:53:34 +08:00
..
benchmarks [SPARK-30843][SQL] Fix getting of time components before 1582 year 2020-02-17 13:59:21 +08:00
src [SPARK-31082][CORE] MapOutputTrackerMaster.getMapLocation should handle last mapIndex correctly 2020-03-09 15:53:34 +08:00
v1.2/src [SPARK-31058][SQL][TEST-HIVE1.2] Consolidate the implementation of quoteIfNeeded 2020-03-06 00:13:57 +00:00
v2.3/src [SPARK-31058][SQL][TEST-HIVE1.2] Consolidate the implementation of quoteIfNeeded 2020-03-06 00:13:57 +00:00
pom.xml [SPARK-30984][SS] Add UI test for Structured Streaming UI 2020-03-04 13:55:34 +08:00