Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

Override vcat() and (maybe) promote_rule() #167

Open
@nalimilan

Description

@nalimilan

We need to override vcat to fix this inconsistency:

julia> vcat(NullableArray(1:2), 1:3)
5-element NullableArrays.NullableArray{Int64,1}:
 1
 2
 1
 2
 3

julia> vcat(1:2, NullableArray(1:2))
4-element Array{Nullable{Int64},1}:
 1
 2
 1
 2

The first case is OK, the second one isn't.

By the way, it could make sense to override promote_rule too, since ideally vcat would use it. Cf. JuliaData/CategoricalArrays.jl#42.

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