[ https://issues.apache.org/jira/browse/ARROW-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443332#comment-16443332 ]
ASF GitHub Bot commented on ARROW-2471: --------------------------------------- andygrove opened a new pull request #1911: ARROW-2471: [Rust] Builder zero capacity fix URL: https://github.com/apache/arrow/pull/1911 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > [Rust] Assertion when pushing value to Builder/ListBuilder with zero capacity > ----------------------------------------------------------------------------- > > Key: ARROW-2471 > URL: https://issues.apache.org/jira/browse/ARROW-2471 > Project: Apache Arrow > Issue Type: Bug > Components: Rust > Reporter: Andy Grove > Assignee: Andy Grove > Priority: Major > Labels: pull-request-available > Fix For: 0.10.0 > > > 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. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)