Skip to content
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

[java] Fix avro bytes conversion for BQ storage #33412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RustedBones
Copy link
Contributor

@RustedBones RustedBones commented Dec 18, 2024

Avro bytes are represented with java ByteBuffer.

Current implementation expects a byte array. This fails in practice with a ClassCastException:
class java.nio.HeapByteBuffer cannot be cast to class [B

Avro byte is represented with java ByteBuffer.
Current implementation expects a byte array. This fails in practice with
a ClassCastException: class java.nio.HeapByteBuffer cannot be cast to class [B
Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @Abacn for label java.
R: @damondouglas for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

Copy link
Contributor

Reminder, please take a look at this pr: @Abacn @damondouglas

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

Thank you!

@Abacn
Copy link
Contributor

Abacn commented Dec 26, 2024

actually is it worth to do a fix similar to #26647 in case byte[] is also possible ?

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