Skip to content

Arrow.BitPrimitive is indexed wrongly, should probably be casted to BitArray #127

@davidavdav

Description

@davidavdav

Hello,

I found that boolean columns index strangely when they are of type Arrow.BitPrimitive. A minimum working error:

y = DataFrame(ok=rand(Bool, 100))
@assert length(y.ok[trues(100)]) == 100 ## true
Feather.write("test.feather", y)
y = Feather.read("test.feather")
@assert length(y.ok[trues(100)]) == 100 ## false

a fix for me would be

y.ok = BitArray(y.ok)
@assert length(y.ok[trues(100)]) == 100 ## true

I don't know what the Arrow types are, but the BitPrimitive type should probably be converted to BitArray

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions