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

Fix JOIN_POINT_IN_POLYGON_LARGE_TEST_EXP test #1346

Merged

Conversation

trxcllnt
Copy link
Contributor

@trxcllnt trxcllnt commented Feb 21, 2024

Description

The JOIN_POINT_IN_POLYGON_LARGE_TEST_EXP test isn't returning any points because they aren't evenly distributed.

The first commit adds a check to ensure the test fails when no results are returned. The second commit fixes the JOIN_POINT_IN_POLYGON_LARGE_TEST_EXP test.

Fixes #1380.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@github-actions github-actions bot added the libcuspatial Relates to the cuSpatial C++ library label Feb 21, 2024
@trxcllnt trxcllnt force-pushed the fix/quadtree-spatial-join-oom branch from 7714e40 to f7c22ac Compare February 21, 2024 16:37
@trxcllnt trxcllnt added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 21, 2024
@harrism
Copy link
Member

harrism commented Feb 21, 2024

Thanks @trxcllnt . Is there an issue already open for this? If not, can you please open one?

@trxcllnt
Copy link
Contributor Author

trxcllnt commented Feb 21, 2024

@harrism yeah, I think this is the issue @thomcom ran into in #890 (comment).

There isn't an issue about the test being incorrect, that was just something I discovered when attempting to fix #890 last night.

@trxcllnt trxcllnt changed the base branch from branch-24.04 to branch-24.06 April 17, 2024 18:20
@trxcllnt trxcllnt changed the title Fix quadtree_point_in_polygon OOM on large numbers of input polygons Fix JOIN_POINT_IN_POLYGON_LARGE_TEST_EXP test May 2, 2024
@trxcllnt trxcllnt marked this pull request as ready for review May 2, 2024 18:36
@trxcllnt trxcllnt requested a review from a team as a code owner May 2, 2024 18:36
@trxcllnt trxcllnt requested review from harrism and isVoid May 2, 2024 18:36
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

@harrism
Copy link
Member

harrism commented May 6, 2024

/merge

@rapids-bot rapids-bot bot merged commit 0324a33 into rapidsai:branch-24.06 May 6, 2024
69 checks passed
@trxcllnt trxcllnt deleted the fix/quadtree-spatial-join-oom branch May 7, 2024 04:31
rapids-bot bot pushed a commit that referenced this pull request May 24, 2024
)

Followup to #1346.

* Fixes some typos/omissions in types and CMake.
* Adds a new test that OOMs when quadtree_point_in_polygon is passed too many input polygons.
* Fixes quadtree spatial join to handle overflow while counting and more conservatively allocate output buffers.

Fixes #890.

* [Failing test run](https://github.com/rapidsai/cuspatial/actions/runs/8979838628/job/24662981350#step:7:840)
* [Passing test run](https://github.com/rapidsai/cuspatial/actions/runs/8981106226/job/24666403165#step:7:840)

Authors:
  - Paul Taylor (https://github.com/trxcllnt)

Approvers:
  - Mark Harris (https://github.com/harrism)
  - Michael Wang (https://github.com/isVoid)

URL: #1381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function libcuspatial Relates to the cuSpatial C++ library non-breaking Non-breaking change
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

[BUG]: JOIN_POINT_IN_POLYGON_LARGE_TEST_EXP always passes because it never matches any points
2 participants