You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Rok Mihevc (Jira)" <ji...@apache.org> on 2023/01/11 07:22:03 UTC
[jira] [Updated] (ARROW-2471) [Rust] Assertion when pushing value to Builder/ListBuilder with zero capacity
[ https://issues.apache.org/jira/browse/ARROW-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rok Mihevc updated ARROW-2471:
------------------------------
External issue URL: https://github.com/apache/arrow/issues/18660
> [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
(v8.20.10#820010)