Re: Potential bug with NULL array

2015-01-15 Thread Jan Van Besien
I created PHOENIX-1587 and added a patch. On Thu, Jan 15, 2015 at 10:39 AM, Jan Van Besien wrote: > Hi, > > I think there is a bug in PArrayDataType, in the context of "store nulls". > > The first line of the createPhoenixArray method tackles the case where > an empty byte array is interpreted as

Potential bug with NULL array

2015-01-15 Thread Jan Van Besien
Hi, I think there is a bug in PArrayDataType, in the context of "store nulls". The first line of the createPhoenixArray method tackles the case where an empty byte array is interpreted as null. However, I think the check should be if (bytes == null || length == 0) rather than if (bytes == null