Skip to content

Python: pa.array constructor does not retain ordered attribute for dictionary type #41017

@WillAyd

Description

@WillAyd

Describe the bug, including details regarding any error messages, version, and platform.

>>> pa.__version__ 
'15.0.1'
>>> dicttyp = pa.dictionary(pa.int8(), pa.string(), ordered=True)
>>> dicttyp
DictionaryType(dictionary<values=string, indices=int8, ordered=1>)
>>> pa.array(["foo", "bar", "foo"], dicttyp).type
DictionaryType(dictionary<values=string, indices=int8, ordered=0>)

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions