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

[Rust] Assertion when pushing value to Builder/ListBuilder with zero capacity

    XMLWordPrintableJSON

    Details

      Description

      If a builder is created with capacity 0 and then data is pushed to the builder, memory reallocation is not triggered and the push fails with an assertion.

      The root cause is that memory reallocation calculates the new capacity as 2x the current capacity which doesn't work if the current capacity is zero.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andygrove Andy Grove
                Reporter:
                andygrove Andy Grove
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: