JuliaDB.jl
JuliaDB.jl copied to clipboard
`isless()` MethodError in join on distributed tables
trafficstars
I get the below error when trying to perform a join on distributed tables. Here's a MWE:
t1 = table((lk = [1,1,2,2,3], v1 = rand(5)), chunks = 2)
t2 = table((rk = [1,2,3,4,5], v2 = rand(5)), chunks = 3)
t3 = join(t1, t2, lkey=:lk, rkey=:rk, how=:inner)
This throws the following error:
MethodError: no method matching isless(::NamedTuple{(:rk,),Tuple{Int64}}, ::NamedTuple{(:lk,),Tuple{Int64}})
Closest candidates are:
isless(!Matched::Missing, ::Any) at missing.jl:87
isless(!Matched::DataValues.DataValue{Union{}}, ::Any) at C:\Users\Jakob\.julia\packages\DataValues\N7oeL\src\scalar\core.jl:293
isless(::NamedTuple{n,T} where T<:Tuple, !Matched::NamedTuple{n,T} where T<:Tuple) where n at namedtuple.jl:158
...
in top-level scope at untitled:9
in at JuliaDB\7cG1k\src\join.jl:116
in #join#273 at JuliaDB\7cG1k\src\join.jl:117
in at JuliaDB\7cG1k\src\join.jl:34
in #join#267 at JuliaDB\7cG1k\src\join.jl:86
in hasoverlap at JuliaDB\7cG1k\src\interval.jl:26
in <= at base\operators.jl:317
in < at base\operators.jl:268
It all works fine when the tables are not distributed. Am I doing something I'm not supposed to or is this an error?
Any help would be greatly appreciated!