Skip to content

[MINOR][VL] Replace C-style casts with C++ casts in shuffle writers#11621

Merged
marin-ma merged 1 commit intoapache:mainfrom
acvictor:acvictor/replaceCStyleCasts
Feb 16, 2026
Merged

[MINOR][VL] Replace C-style casts with C++ casts in shuffle writers#11621
marin-ma merged 1 commit intoapache:mainfrom
acvictor:acvictor/replaceCStyleCasts

Conversation

@acvictor
Copy link
Contributor

@acvictor acvictor commented Feb 16, 2026

What changes are proposed in this pull request?

This PR replaces C-style pointer/value casts with C++ casts in VeloxHashShuffleWriter and VeloxGpuShuffleWriter

How was this patch tested?

Existing tests since there is no behavioral change and only cast syntax is updated.

Was this patch authored or co-authored using generative AI tooling?

No

Replace 6 C-style pointer casts with reinterpret_cast or static_cast in
VeloxHashShuffleWriter and VeloxGpuShuffleWriter. C-style casts bypass
type safety checks and are harder to search for during code review.
This aligns with the existing style in the same files (e.g. line 111
of VeloxHashShuffleWriter.cc already uses reinterpret_cast).
@github-actions github-actions bot added the VELOX label Feb 16, 2026
@acvictor acvictor marked this pull request as ready for review February 16, 2026 10:57
@acvictor
Copy link
Contributor Author

@marin-ma can you please review this PR? Thanks in advance!

Copy link
Contributor

@marin-ma marin-ma left a comment

Choose a reason for hiding this comment

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

Thanks!

@marin-ma marin-ma merged commit 7e4a6bb into apache:main Feb 16, 2026
62 checks passed
@acvictor acvictor deleted the acvictor/replaceCStyleCasts branch February 16, 2026 12:26
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.

2 participants