Revision a5ccbced8c1d6f41e5287269294642f32e445976 authored by madianjun on 06 December 2019, 07:39:49 UTC, committed by Dongjoon Hyun on 06 December 2019, 07:39:49 UTC
### What changes were proposed in this pull request?

A bug fixed about the code in getBlockHosts() function. In the case "The fragment ends at a position within this block", the end of fragment should be before the end of block,where the "end of block" means `b.getOffset + b.getLength`,not `b.getLength`.

### Why are the changes needed?

When comparing the fragment end and the block end,we should use fragment's `offset + length`,and then compare to the block's `b.getOffset + b.getLength`, not the block's length.

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

No.

### How was this patch tested?
No test.

Closes #26650 from mdianjun/fix-getBlockHosts.

Authored-by: madianjun <madianjun@jd.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
1 parent da27f91
History
File Mode Size
docs
lib
pyspark
test_coverage
test_support
.coveragerc -rw-r--r-- 872 bytes
.gitignore -rw-r--r-- 49 bytes
MANIFEST.in -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 1.8 KB
pylintrc -rw-r--r-- 13.7 KB
run-tests -rwxr-xr-x 1.1 KB
run-tests-with-coverage -rwxr-xr-x 2.5 KB
run-tests.py -rwxr-xr-x 12.8 KB
setup.cfg -rw-r--r-- 854 bytes
setup.py -rwxr-xr-x 10.7 KB

README.md

back to top