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/01/19 12:17:19 UTC

[GitHub] [iceberg] cccs-eric opened a new issue #3924: (python_legacy) Wrong encoding for lower/upper bounds boolean value

cccs-eric opened a new issue #3924:
URL: https://github.com/apache/iceberg/issues/3924


   According to the [Iceberg spec (Appendix D)](https://iceberg.apache.org/#spec/#appendix-d-single-value-serialization), a boolean should be serialized as 1-byte field.  When I try to parse booleans, I always get the following error: 
   `Arguments: (error('unpack requires a buffer of 2 bytes'),)`
   
   The error message is in contradiction with the spec.  It is caused by the following line: 
   `TypeID.BOOLEAN: lambda type_id, value: struct.unpack('<h', value)[0] != 0` .
   
   This issue has been discussed in the #python Slack channel.


-- 
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


[GitHub] [iceberg] cccs-eric closed issue #3924: (python_legacy) Wrong encoding for lower/upper bounds boolean value

Posted by GitBox <gi...@apache.org>.
cccs-eric closed issue #3924:
URL: https://github.com/apache/iceberg/issues/3924


   


-- 
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