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

GH-2930: Support for query cancellation for spatial property functions #2931

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

Aklakan
Copy link
Contributor

@Aklakan Aklakan commented Jan 8, 2025

GitHub issue resolved #2930

Pull request Description: Improves base implementation of GenericPropertyFunction to operate lazily using the QueryIter machinery and its cancellation features. The class CancelQueryTest tests for successful cancellation.

Disclaimer: The core work was done by my colleague @LorenzBuehmann - He suggested that I should take care of the PR.

Set to draft because perhaps some more regression testing should be added.

There are several tests in the geosparql module. I experimented by introducing intentional errors into the PR, such as setting isSubjectBound hard to false/false or returning empty/unit result sets and they causes failures - so the tests already seem to sufficiently capture cases where bogus results are returned.


  • Tests are included.
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

@Aklakan Aklakan marked this pull request as draft January 8, 2025 15:44
@Aklakan Aklakan force-pushed the bugfix/spatial-cancel branch 3 times, most recently from 9a5c75f to 3d4fe06 Compare January 8, 2025 16:00
@Aklakan Aklakan force-pushed the bugfix/spatial-cancel branch 5 times, most recently from 0f9b4c1 to e274a96 Compare February 9, 2025 21:53
@Aklakan Aklakan force-pushed the bugfix/spatial-cancel branch from e274a96 to 00e19cd Compare February 9, 2025 22:18
@Aklakan Aklakan marked this pull request as ready for review February 9, 2025 22:42
@afs afs merged commit 7422ac2 into apache:main Feb 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cancellable spatial property functions
2 participants