You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Paul Taylor (Jira)" <ji...@apache.org> on 2020/09/19 19:54:00 UTC

[jira] [Commented] (ARROW-9865) How to Update a Dictionary - Examples needed

    [ https://issues.apache.org/jira/browse/ARROW-9865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17198826#comment-17198826 ] 

Paul Taylor commented on ARROW-9865:
------------------------------------

Arrow Vectors are immutable, it's not possible to append new elements once they've been constructed. You can however construct a new Arrow Vector with additional elements via the Builder classes (or related high-level `Vector.from()` convenience methods).

> How to Update a Dictionary - Examples needed
> --------------------------------------------
>
>                 Key: ARROW-9865
>                 URL: https://issues.apache.org/jira/browse/ARROW-9865
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: JavaScript, Python
>            Reporter: Alex Monahan
>            Priority: Major
>
> How can I do an in-place update on a specific value in a dictionary encoded column in an Arrow Table?
>  
> I have searched all issues and all of the documentation that I can find, and I still can't figure out how to add a new item to a dictionary. The new item I would like to add is different than any previously added value, so it is not already in the dictionary keys. Is this possible? 
> I am working in the JS client, but a Python example may be enough to point me in the right direction.
>  



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