Andrew Lamb created ARROW-10886:
-----------------------------------

             Summary: [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
            Reporter: Andrew Lamb


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)

Reply via email to