You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below gives a Method error, but works if I remove the Int128 from the key array.
vals = [i for i in1:10]
keys = [Int128(i) for i in1:10]
testsparse =ndsparse((a=keys,),(c=vals,))
julia> testsparse[1]
ERROR: MethodError: no method matching get(::IndexedTables.var"#146#147"{Tuple{Int64}}, ::NDSparse{NamedTuple{(:c,),Tuple{Int64}},Tuple{Int128},StructArrays.StructArray{NamedTuple{(:a,),Tuple{Int128}},1,NamedTuple{(:a,),Tuple{Array{Int128,1}}},Int64},StructArrays.StructArray{NamedTuple{(:c,),Tuple{Int64}},1,NamedTuple{(:c,),Tuple{Array{Int64,1}}},Int64}}, ::Tuple{Int64})
Closest candidates are:get(::REPL.Terminals.TTYTerminal, ::Any, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\Terminals.jl:176get(::IdDict{K,V}, ::Any, ::Any) where {K, V} at abstractdict.jl:596get(::Union{Function, Type}, ::IdDict{K,V}, ::Any) where {K, V} at abstractdict.jl:651...
Stacktrace:
[1] _getindex_scalar(::NDSparse{NamedTuple{(:c,),Tuple{Int64}},Tuple{Int128},StructArrays.StructArray{NamedTuple{(:a,),Tuple{Int128}},1,NamedTuple{(:a,),Tuple{Array{Int128,1}}},Int64},StructArrays.StructArray{NamedTuple{(:c,),Tuple{Int64}},1,NamedTuple{(:c,),Tuple{Array{Int64,1}}},Int64}}, ::Tuple{Int64}) at C:\Users\hebb\.julia\packages\IndexedTables\5U0Ap\src\indexing.jl:21
[2] _getindex(::NDSparse{NamedTuple{(:c,),Tuple{Int64}},Tuple{Int128},StructArrays.StructArray{NamedTuple{(:a,),Tuple{Int128}},1,NamedTuple{(:a,),Tuple{Array{Int128,1}}},Int64},StructArrays.StructArray{NamedTuple{(:c,),Tuple{Int64}},1,NamedTuple{(:c,),Tuple{Array{Int64,1}}},Int64}}, ::Tuple{Int64}) at C:\Users\hebb\.julia\packages\IndexedTables\5U0Ap\src\indexing.jl:18
[3] getindex(::NDSparse{NamedTuple{(:c,),Tuple{Int64}},Tuple{Int128},StructArrays.StructArray{NamedTuple{(:a,),Tuple{Int128}},1,NamedTuple{(:a,),Tuple{Array{Int128,1}}},Int64},StructArrays.StructArray{NamedTuple{(:c,),Tuple{Int64}},1,NamedTuple{(:c,),Tuple{Array{Int64,1}}},Int64}}, ::Int64) at C:\Users\hebb\.julia\packages\IndexedTables\5U0Ap\src\indexing.jl:15
[4] top-level scope at none:0
The text was updated successfully, but these errors were encountered:
The code below gives a Method error, but works if I remove the Int128 from the key array.
The text was updated successfully, but these errors were encountered: