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-607] Fix error message enhancements for geometry functions #1555

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Kontinuation
Copy link
Member

@Kontinuation Kontinuation commented Aug 21, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

This patch is based on #1525, it generates enhanced error messages when the input arguments of geometry functions are not literal. The input arguments may help troubleshoot the cause of the errors.

Note: we originally planned to extract auxiliary fields from input rows and attach them to the error messages, but actually this is hard to implement since we don't know the types of columns that are not part of the function arguments. The error messages will only include arguments passed to the errored functions, including the input geometries. Hopefully this will be good enough for troubleshooting.

How was this patch tested?

Passing newly added tests.

Did this PR include necessary documentation updates?

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

@jiayuasu jiayuasu added this to the sedona-1.6.1 milestone Aug 21, 2024
@jiayuasu jiayuasu merged commit 1737174 into apache:master Aug 21, 2024
50 checks passed
jiayuasu pushed a commit that referenced this pull request Aug 21, 2024
…1555)

* Fix error message enhancements for geometry functions

* Fix compilation for scala 2.13
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.

2 participants