You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/11/17 20:06:56 UTC

[GitHub] [iceberg] Fokko commented on issue #6210: pyiceberg BinaryDecoder does not correctly read 4-byte little-endian int values

Fokko commented on issue #6210:
URL: https://github.com/apache/iceberg/issues/6210#issuecomment-1319141897

   Hey @alec-heif Thanks for opening this PR. I think we're mixing up different file types. The decoder that you pointed out in the example, is an Avro decoder that adheres to the [Avro spec](https://avro.apache.org/docs/1.11.1/specification/#primitive-types-1). int and long values are written using [variable-length](https://lucene.apache.org/java/3_5_0/fileformats.html#VInt) [zig-zag](https://code.google.com/apis/protocolbuffers/docs/encoding.html#types) coding.
   
   The decoding of the single values happens using the `_from_byte_buffer` method, which produces the same result as your example:
   ![image](https://user-images.githubusercontent.com/1134248/202548298-9d440258-e061-4447-b6a4-768add7b4f3d.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org