You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/26 12:42:04 UTC

[jira] [Closed] (ARROW-10886) [Rust] Potential crash when creating arrays from Iterators if size_hint is not correct

     [ https://issues.apache.org/jira/browse/ARROW-10886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lamb closed ARROW-10886.
-------------------------------
    Resolution: Invalid

> [Rust] Potential crash when creating arrays from Iterators if size_hint is not correct
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-10886
>                 URL: https://issues.apache.org/jira/browse/ARROW-10886
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>            Reporter: Andrew Lamb
>            Priority: Major
>
> It appears that the code that implements converting iterators to arrow arrays effectively relies  on size_hint to return the precise size of the iterator otherwise it will crash (maybe) -- but I think the intention of size_hint is, as the name suggests, a hint.
> The goal of this ticket is to remove the assumption in the code that size_hint must return a value as well as the assumption that it is accurate. 
> More details can be found here
> https://github.com/apache/arrow/pull/8842#discussion_r540295695



--
This message was sent by Atlassian Jira
(v8.3.4#803005)