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

Refactor ST_Distance Column API and Cython #1124

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented May 4, 2023

Description

This PR makes all ST_Distance API conforms to a homogenous API format and documentation. This also greatly simplifies the implementation of each of the column APIs. Closes #1123

This PR also introduces several GeometryColumnFixtures that manages the life time of a few commonly used geometry columns and use them across the tests of these APIs. Supersedes #1104

This PR also fixes several bugs in the computation kernels when the input is empty.

Checklist

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

@isVoid isVoid requested review from a team as code owners May 4, 2023 18:57
@github-actions github-actions bot added the cmake Related to CMake code or build configuration label May 4, 2023
@github-actions github-actions bot added libcuspatial Relates to the cuSpatial C++ library Python Related to Python code labels May 4, 2023
@isVoid isVoid changed the title Refactors ST_Distance Column API and Cython Refactor ST_Distance Column API and Cython May 4, 2023
@isVoid isVoid added improvement Improvement / enhancement to an existing function 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels May 4, 2023
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.

Very nice cleanup. The new test fixtures really DRY up the code.

cpp/include/cuspatial/distance.hpp Outdated Show resolved Hide resolved
cpp/include/cuspatial_test/geometry_fixtures.hpp Outdated Show resolved Hide resolved
@isVoid isVoid self-assigned this May 10, 2023
@isVoid
Copy link
Contributor Author

isVoid commented May 16, 2023

/merge

@rapids-bot rapids-bot bot merged commit c6ecbc0 into rapidsai:branch-23.06 May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team cmake Related to CMake code or build configuration improvement Improvement / enhancement to an existing function libcuspatial Relates to the cuSpatial C++ library non-breaking Non-breaking change Python Related to Python code
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

Refactor ST_Distance column API to ensure API homogeneity.
2 participants