Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16983

Delta byte array encoder broken due to memory leak

    XMLWordPrintableJSON

Details

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              depero Matt DePero
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m