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

Hudson commented on PHOENIX-1587:
---------------------------------

SUCCESS: Integrated in Phoenix-3.0-hadoop1 #348 (See 
[https://builds.apache.org/job/Phoenix-3.0-hadoop1/348/])
PHOENIX-1587 Error deserializing empty array (which represents null) (Jan Van 
Besien) (jtaylor: rev 8b4df7ba9067f8b4d383838a7a8440c56a1a4a18)
* phoenix-core/src/main/java/org/apache/phoenix/schema/PArrayDataType.java


> Error deserializing empty array (which represents null)
> -------------------------------------------------------
>
>                 Key: PHOENIX-1587
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1587
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Jan Van Besien
>            Assignee: Jan Van Besien
>             Fix For: 4.3, 3.3
>
>         Attachments: PHOENIX-1587.patch
>
>
> Serializing null arrays results in an empty byte[]. The deserialization logic 
> in PArrayDataType#createPhoenixArray has a check to return null if the 
> provided byte[] is empty, however it checks the length of the byte[] rather 
> than the provided length parameter. Note that the provided byte[] is 
> typically the whole underlying row; it has to be interpreted only from offset 
> to length.
> Therefor, the check has to be replaced with a check on length rather than on 
> bytes.length.



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

Reply via email to