Skip to content

feat(arrow/compute): support some float16 casts#430

Merged
zeroshade merged 4 commits intoapache:mainfrom
zeroshade:cast-half-float
Jul 7, 2025
Merged

feat(arrow/compute): support some float16 casts#430
zeroshade merged 4 commits intoapache:mainfrom
zeroshade:cast-half-float

Conversation

@zeroshade
Copy link
Member

@zeroshade zeroshade commented Jun 30, 2025

closes #424

Rationale for this change

Support casting float16 arrays to/from int and float32/float64

What changes are included in this PR?

Implementation of new casting kernels for cast_float, cast_half_float, cast_int32

Are these changes tested?

Unit tests are added to account for this.

Are there any user-facing changes?

No

@zeroshade zeroshade requested review from kou and lidavidm June 30, 2025 19:18
Copy link
Member Author

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

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

CC @Sunyue

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

This is technically a breaking change then right?

@zeroshade
Copy link
Member Author

Yea, I'm trying to figure out if there's a way I can do this easily without making the breaking change part.

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

I think we can update the PR description now that there's no change to the float16 API

@zeroshade zeroshade merged commit 8598fb3 into apache:main Jul 7, 2025
45 of 49 checks passed
@zeroshade zeroshade deleted the cast-half-float branch July 7, 2025 19:24
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.

Support cast float16 array to float32/float64

2 participants