Skip to content

Implement BIT_COUNT unary operation #18589

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

Merged
merged 26 commits into from
May 13, 2025

Conversation

ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Apr 28, 2025

This implements bitwise count (BIT_COUNT) unary operation for counting the number of set bits in the given integer numbers.

Partially contributes to #18552.

ttnghia added 5 commits April 28, 2025 14:29
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
@ttnghia ttnghia added feature request New feature or request 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. Spark Functionality that helps Spark RAPIDS non-breaking Non-breaking change labels Apr 28, 2025
@ttnghia ttnghia self-assigned this Apr 28, 2025
@ttnghia ttnghia requested review from a team as code owners April 28, 2025 23:00
@ttnghia ttnghia requested review from bdice and vuule April 28, 2025 23:00
@ttnghia ttnghia added this to libcudf Apr 28, 2025
@github-actions github-actions bot added the Java Affects Java cuDF API. label Apr 28, 2025
ttnghia added 2 commits April 28, 2025 21:06
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
@GregoryKimball GregoryKimball moved this to Burndown in libcudf May 5, 2025
Copy link
Contributor

@razajafri razajafri left a comment

Choose a reason for hiding this comment

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

+1 for Java

Signed-off-by: Nghia Truong <[email protected]>
@ttnghia ttnghia added breaking Breaking change and removed non-breaking Non-breaking change labels May 12, 2025
ttnghia added 3 commits May 12, 2025 16:02
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
@ttnghia ttnghia requested a review from a team as a code owner May 12, 2025 23:28
@ttnghia ttnghia requested review from wence- and galipremsagar May 12, 2025 23:28
@github-actions github-actions bot added Python Affects Python cuDF API. pylibcudf Issues specific to the pylibcudf package labels May 12, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python May 12, 2025
@ttnghia
Copy link
Contributor Author

ttnghia commented May 12, 2025

I've just added the BIT_COUNT enum into python code so the operator list in python mirrors exactly the enum in libcudf. Just to have a peace of mind.

Copy link
Contributor

@Matt711 Matt711 left a comment

Choose a reason for hiding this comment

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

Thanks, approving the python change! I also noticed the unary tests in pylibcudf are lacking, but I'll leave that as a follow-up for myself.

@ttnghia
Copy link
Contributor Author

ttnghia commented May 13, 2025

/merge

@rapids-bot rapids-bot bot merged commit 35d5839 into rapidsai:branch-25.06 May 13, 2025
127 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in cuDF Python May 13, 2025
@ttnghia ttnghia deleted the unary_bitwise_ops branch May 13, 2025 17:35
@vuule vuule moved this from Burndown to Landed in libcudf May 13, 2025
ttnghia added a commit to NVIDIA/spark-rapids that referenced this pull request May 19, 2025
This adds support for `bit_count` SQL function.

Depends on:
 * rapidsai/cudf#18589

Closes #12571.

---------

Signed-off-by: Nghia Truong <[email protected]>
Co-authored-by: Ferdinand Xu <[email protected]>
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 breaking Breaking change feature request New feature or request Java Affects Java cuDF API. libcudf Affects libcudf (C++/CUDA) code. pylibcudf Issues specific to the pylibcudf package Python Affects Python cuDF API. Spark Functionality that helps Spark RAPIDS
Projects
Status: Done
Status: Landed
Development

Successfully merging this pull request may close these issues.

9 participants