Matt DePero created ARROW-16983:
-----------------------------------

             Summary: Delta byte array encoder broken due to memory leak
                 Key: ARROW-16983
                 URL: https://issues.apache.org/jira/browse/ARROW-16983
             Project: Apache Arrow
          Issue Type: Bug
          Components: Go, Parquet
            Reporter: Matt DePero


The `DeltaByteArrayEncoder` has a memory leak due to a bug in how 
`EstimatedDataEncodedSize` is calculated. DeltaByteArrayEncoder extends 
`encoder` which calculates EstimatedDataEncodedSize by calling `Len()` on its 
`PooledBufferWriter` sink. DeltaByteArrayEncoder however does not write data to 
sink, instead writing data to `prefixEncoder` and `suffixEncoder` causing 
EstimatedDataEncodedSize to always return zero. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to