Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ST_Point doesn't accept null user data #321
ST_Point should allow null user data.
A NullPointerException is thrown is a field has null data:
Query without field
Query with field
Steps to reproduce the problem
GeoSpark version = 1.1.3
Apache Spark version = 2.1.0
JRE version = 1.8? Yes
API type = Scala or Java? Scala
The way to bring non-spatial columns from DataFrame to RDD is changed in v1.2.0: https://github.com/DataSystemsLab/GeoSpark/blob/master/sql/src/main/scala/org/datasyslab/geosparksql/utils/Adapter.scala#L69
But the new way also doesn't handle the null value. Will do.