-
Notifications
You must be signed in to change notification settings - Fork 17
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
IAvroRows serializedBinaryRows typedef is a Buffer but defined as (Uint8Array|string|null) #335
Comments
This is a generated API. I'm not familiar with the Avro library you're using, but this sounds like a case where you need to wrap the serialized row data in a buffer before passing it to the Avro decode? |
This is the same library your examples are using but not the actual issue. The typedef for the property is different from the type of the property. It's defined as UInt8Array in this library, but it is a Buffer when executing. |
To be clear: nodejs-bigquery-storage/protos/protos.d.ts Line 440 in b2aa964
This property is a So this nodejs-bigquery-storage/samples/quickstart.js Line 117 in f7ba708
avro.decode expects a Buffer not a UInt8Array and it actually is a Buffer when executing.
|
Status: exploring potential annotation changes via internal issue 277340507. |
Those typescript annotations are generated by protobufjs and we apply some fixes in our |
Avro's
Type.decode
expects aBuffer
andserializedBinaryRows
is aBuffer
, but it's defined as(Uint8Array|string|null)
which shows up as a type issue.Presumably either the typedef is missing, or
serializedBinaryRows
is wrong.The text was updated successfully, but these errors were encountered: