You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would appear from the docs that you cannot create a DictionaryArray by defining both the keys and and values? This is opposed to the python API which does. This is quite useful for cases where the dictionary mapping is defined elsewhere (e.g., a C enum). Are there plans to add this? Or am I reading the docs wrong. Thanks!
The text was updated successfully, but these errors were encountered:
jmrgibson
changed the title
Question: Is there no way to create a DictionaryArray with a pre-arrange mapping?
Question: Is there no way to create a DictionaryArray with a pre-arranged mapping?
Aug 30, 2021
For combining keys with an existing dictionary there is also PrimitiveBuilder::finish_dict. This is not that obvious to find in the documentation and I also forgot about it.
It would appear from the docs that you cannot create a
DictionaryArray
by defining both the keys and and values? This is opposed to the python API which does. This is quite useful for cases where the dictionary mapping is defined elsewhere (e.g., a C enum). Are there plans to add this? Or am I reading the docs wrong. Thanks!The text was updated successfully, but these errors were encountered: