Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geometry toString() has cumulative non-spatial attributes #222

Closed
jiayuasu opened this issue Apr 26, 2018 · 0 comments

Comments

@jiayuasu
Copy link
Member

commented Apr 26, 2018

Expected behavior

Such command print(spatialRdd.getRawSpatialRDD.take(1)(0)) should only print something like this:

POINT(XXX) attribute1
POINT(XXX) attribute1
POINT(XXX) attribute1
POINT(XXX) attribute1

Actual behavior

Such command print(spatialRdd.getRawSpatialRDD.take(1)(0)) should only print something like this:

POINT(XXX) attribute1
POINT(XXX) attribute1 attribute1
POINT(XXX) attribute1 attribute1 attribute1
POINT(XXX) attribute1 attribute1 attribute1 attribute1

The unit test in GeoSpark RDD only captures the first row of the output and doesn't continue to check other rows.

Steps to reproduce the problem

Any commands try to save/print an RDD will have this problem such as "saveAsTextFile".

Settings

GeoSpark version = 1.1.2 only

Apache Spark version = 2.X

JRE version = 1.8

API type = Scala and Java, RDD API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.