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

[SEDONA-153] Add None guards to GeometryType #675

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

douglasdennis
Copy link
Contributor

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

  • Added guards to the python methods GeometryType.toInternal and GeometryType.fromInternal. This allows for null geometry to be passed between python and the JVM.

How was this patch tested?

  • Added two new unit tests: test_null_deserializer in test_deserializers.py and test_null_serializer in test_serializers.py. Both of these tests fail on the current release of Sedona and now pass with this PR.

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the docs.

@jiayuasu
Copy link
Member

@Imbruced Pawel, do you have any comments?

@Imbruced
Copy link
Member

@jiayuasu looks good to me. It's ready to merge.

@jiayuasu jiayuasu merged commit 59a1ab4 into apache:master Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants