Github user ramkrish86 commented on the pull request:
https://github.com/apache/incubator-phoenix/pull/8#discussion_r9859568
I have done this now. But not in the above way instead
ptr.set(byteStream.getBuffer(), 0, estimatedSize + elementLength);
where am tracking the elementLength incase of variable length array. So
that as we don't know the real size of the byteStream, by doing this we avoid
the unnecessary 0 that gets added. Because we have now changed the header info
to the end of the serialization having this 0 would cause error.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. To do so, please top-post your response.
If your project does not have this feature enabled and wishes so, or if the
feature is enabled but not working, please contact infrastructure at
[email protected] or file a JIRA ticket with INFRA.
---