Skip to content

GH-37027: [C++] Add float16 kernels to if-else and vector-replace functions #46446

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

colin-r-schultz
Copy link
Contributor

@colin-r-schultz colin-r-schultz commented May 14, 2025

Rationale for this change

Support float16/halffloat type in some functions which are agnostic to the numeric value.

What changes are included in this PR?

  • Added a case to GenerateTypeAgnosticPrimitive for HALF_FLOAT
  • Added float16 kernels for if_else, case_when, coalesce, and choose
  • Added float16 kernels for replace_with_mask, fill_null_forward, fill_null_backward
  • Add HalfFloatType to the list of types tested for the above functions

Are these changes tested?

Yes

Are there any user-facing changes?

Functions listed above now support float16

Copy link

⚠️ GitHub issue #37027 has been automatically assigned in GitHub to PR creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant