You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2021/01/13 05:13:46 UTC
[GitHub] [accumulo-proxy] ctubbsii commented on issue #26: examples or support for writing non-string values
ctubbsii commented on issue #26:
URL: https://github.com/apache/accumulo-proxy/issues/26#issuecomment-759210168
@knackjax Accumulo works with arbitrary byte arrays. If you want to store anything more complex than arbitrary bytes, you must encode them into a byte array somehow.
The code you linked is auto-generated Thrift code. Thrift has a type system (https://thrift.apache.org/docs/types). Accumulo uses the `binary` type for this `value` field (see https://github.com/apache/accumulo-proxy/blob/5df2f8c5017e5a8395316d928828c10f59cbe8c2/src/main/thrift/proxy.thrift#L55). Based on your example and the code you linked, it appears that Thrift uses strings to represent this `binary`) type in python, so you will need to encode your complex objects into a python string.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org