Skip to content

Commit

Permalink
Merge pull request #4 from DataSystemsLab/GeoSpark-for-Spark-1.X
Browse files Browse the repository at this point in the history
Update my local 1.6 branch
  • Loading branch information
jiayuasu authored Feb 9, 2017
2 parents bc23e53 + 73becac commit e2c998c
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 e2c998c

Please sign in to comment.