Skip to content

Fix spatial join when left and right rdd have different PartitionerIndex - #3175

Merged
echeipesh merged 3 commits into
locationtech:masterfrom
soxofaan:issue3168-spatial-join
Apr 6, 2020
Merged

echeipesh merged 3 commits into
locationtech:masterfrom
soxofaan:issue3168-spatial-join

Conversation

@soxofaan

@soxofaan soxofaan commented Jan 9, 2020 •

Copy link
Copy Markdown
Contributor

Overview

Fixes issue described at #3168
The original implementation blindly assumed same partition indexing, causing empty join when using custom partitioning with one of the RDDs being joined.
This PR adds tests for this use case and fixes the issue by adding an additional check that same PartitionIndexer is used, so that reshuffle is triggered when that is not the case.
PR also fixed some inactive asserts in same file.
It also addresses partitioning mismatch in ReorderedSpaceRDD

Checklist

  • docs/CHANGELOG.rst updated, if necessary
  • Module Hierarcy updated, if necessary
  • docs guides update, if necessary
  • New user API has useful Scaladoc strings
  • Unit tests added for bug-fix or new feature

Closes #3168

@soxofaan
soxofaan force-pushed the issue3168-spatial-join branch 5 times, most recently from 9920fac to df7be80 Compare January 10, 2020 11:30
@soxofaan
soxofaan force-pushed the issue3168-spatial-join branch from df7be80 to d77637f Compare January 10, 2020 11:35
@echeipesh echeipesh self-assigned this Jan 10, 2020
@echeipesh
echeipesh merged commit 443f962 into locationtech:master Apr 6, 2020
echeipesh added a commit that referenced this pull request Apr 6, 2020
@soxofaan
soxofaan deleted the issue3168-spatial-join branch April 7, 2020 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spatial join result empty when using custom space partitioner index

3 participants