Skip to content

append! doesn't follow AbstractArray interface, relies on Tables instead #278

Open
@aplavin

Description

@aplavin

Found a bug in the append! function of StructArrays:

julia> using AxisKeys, StructArrays

# OK:
julia> append!(StructArray(a=[1,2]), [(a=3,),(a=4,)])
4-element StructArray(::Vector{Int64}) with eltype NamedTuple{(:a,), Tuple{Int64}}:
...

# error:
julia> append!(StructArray(a=[1,2]), KeyedArray([(a=3,),(a=4,)], 1:2))
ERROR: type NamedTuple has no field a

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