Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
Using the ST_Distance function with a null geometry triggers a java.lang.NullPointerException error.
Expected behaviour is for the function to return null.
This is a problem in situations when you can't guarantee a geometry isn't null; such as when using lead and lag with windowing. The workaround is to use a case statement to test for null geoms.
Platform tested on: AWS EMR with Pyspark 3.0.0 (Python 3.7.9) and Sedona 1.3.2 SNAPSHOT.
I suspect this issue exists in other functions as well but haven't tested.
Attachments
Issue Links
- links to