[ 
https://issues.apache.org/jira/browse/PHOENIX-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162763#comment-14162763
 ] 

James Taylor commented on PHOENIX-1329:
---------------------------------------

Our arrays were really designed to store arrays of other primitive types, not 
arbitrary arrays of arbitrary bytes (i.e. VARBINARY VARBINARY [] aren't really 
supported and we should flag it as an error). We should brainstorm about this - 
maybe for your use case you can just use a VARBINARY and serialize the raw 
bytes yourself? If you're planning on querying the data, then the story might 
be different, but otherwise, VARBINARY is the way to go.

> Correctly support varbinary arrays
> ----------------------------------
>
>                 Key: PHOENIX-1329
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1329
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Jesse Yates
>             Fix For: 5.0.0, 4.3
>
>         Attachments: phoenix-1329-bug.patch
>
>
> Storing arrays of binary data can contain 0x00, which Phoenix uses a the 
> field separator. This leads phoenix to return arrays incorrectly - shortening 
> them prematurely.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to