Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getindex fails with empty Union{} array #30145

Closed
simonbyrne opened this issue Nov 24, 2018 · 0 comments
Closed

getindex fails with empty Union{} array #30145

simonbyrne opened this issue Nov 24, 2018 · 0 comments

Comments

@simonbyrne
Copy link
Contributor

julia> X = [1,2,3];

julia> X[Union{}[]]
ERROR: ArgumentError: invalid index: Union{}[] of type Array{Union{},1}
Stacktrace:
 [1] to_index(::Array{Union{},1}) at ./indices.jl:262
 [2] to_index(::Array{Int64,1}, ::Array{Union{},1}) at ./indices.jl:247
 [3] to_indices at ./indices.jl:293 [inlined]
 [4] to_indices at ./indices.jl:290 [inlined]
 [5] getindex(::Array{Int64,1}, ::Array{Union{},1}) at ./abstractarray.jl:905
 [6] top-level scope at none:0

cause of JuliaData/JuliaDB.jl#228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant