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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to