Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Aug 7, 2025

What changes were proposed in this pull request?

This PR aims to use Java InputStream.skipNBytes instead of ByteStreams.skipFully.

-    ByteStreams.skipFully(is, offset)
+    is.skipNBytes(offset)

Why are the changes needed?

Java 12+ supports skipNBytes natively. We had better use this simple style.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

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

No.

@dongjoon-hyun
Copy link
Member Author

Could you review this too when you have some time, @peter-toth ?

@dongjoon-hyun
Copy link
Member Author

Thank you, @peter-toth !

@dongjoon-hyun
Copy link
Member Author

Merged to master for Apache Spark 4.1.0.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-53180 branch August 7, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants