Re: Java allocate buffer code

2019-03-28 Thread Hitesh
Created jira for it https://issues.apache.org/jira/browse/ARROW-5057 Thanks. Hitesh. On Thursday, March 28, 2019, 11:25:58 AM PDT, Siddharth Teotia wrote: Hitesh, I suggest you file a JIRA for the potential issue you are seeing and if possible raise a PR with a test case that you think

[jira] [Created] (ARROW-5057) Java: allocate new buffer code doesn't release extra allocated buffer properly

2019-03-28 Thread Hitesh Khamesra (JIRA)
Hitesh Khamesra created ARROW-5057: -- Summary: Java: allocate new buffer code doesn't release extra allocated buffer properly Key: ARROW-5057 URL: https://issues.apache.org/jira/browse/ARROW-5057

Re: Java allocate buffer code

2019-03-28 Thread Hitesh
th2ThePowerSize - combinedSize) = 4064 bytes. But, this is not happening. let me know if this example helps. Do we have some other channel to talk? Thanks. Hitesh. On Thursday, March 28, 2019, 10:59:18 AM PDT, Siddharth Teotia wrote: Hitesh, Yes, if you see in the code, the sliced buffe

Re: Java allocate buffer code

2019-03-27 Thread Hitesh
wrote: Hi Hitesh, The code you referenced allocates data and validity buffers for a fixed width vector. It first determines the appropriate buffer size for a given value count and then allocates a compound buffer. The compound buffer is then sliced to get data and validity buffers and finally

Java allocate buffer code

2019-03-27 Thread Hitesh Khamesra
Hi All: I was looking following code to release extra allocated buffer. It seems it should be considering actualCount as "valueCount*typeWidth". Then it should calculate extra buffer and release it. Right now, it calculates based on actually allocated size and not justifying the intend. Any