Skip to content

Commit

Permalink
Merge pull request #54 from invadergir/partitioning-fix-1.5
Browse files Browse the repository at this point in the history
Fix for Spark < 1.6. Thanks @invadergir !
  • Loading branch information
jiayuasu authored Feb 8, 2017
2 parents dc94551 + c0327c2 commit 73becac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public abstract class SpatialRDD implements Serializable{
*/
public boolean spatialPartitioning(GridType gridType) throws Exception
{
int numPartitions = this.rawSpatialRDD.getNumPartitions();
int numPartitions = this.rawSpatialRDD.rdd().partitions().length;
if(this.boundaryEnvelope==null)
{
throw new Exception("[AbstractSpatialRDD][spatialPartitioning] SpatialRDD boundary is null. Please call boundary() first.");
Expand Down

0 comments on commit 73becac

Please sign in to comment.