You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jörn Horstmann (Jira)" <ji...@apache.org> on 2021/02/03 13:02:00 UTC

[jira] [Resolved] (ARROW-10298) [Rust] Incorrect offset handling in iterator over dictionary keys

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

Jörn Horstmann resolved ARROW-10298.
------------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

This was fixed some time ago, DictionaryArray no longer has a separate iterator implementation but instead one can get the keys as a PrimitiveArray and iterate over that.

> [Rust] Incorrect offset handling in iterator over dictionary keys
> -----------------------------------------------------------------
>
>                 Key: ARROW-10298
>                 URL: https://issues.apache.org/jira/browse/ARROW-10298
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>            Reporter: Jörn Horstmann
>            Priority: Major
>             Fix For: 3.0.0
>
>
> The NullableIterator used by DictionaryArray.keys calls ArrayData.is_null without taking the offset of that ArrayData into account. It would probably be better if ArrayData itself handled the offset in that method.
> The iterator implementation could now also be replaced with the PrimitiveIter that was recently added



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