-
Notifications
You must be signed in to change notification settings - Fork 373
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
Test non-matching joins #1317
Test non-matching joins #1317
Conversation
402e487
to
4da8fc9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add CategoricalArrays 0.3.3 to REQUIRES so that it's ready once we tag the release?
test/join.jl
Outdated
@test eltypes(join(l, r, on=:id, kind=:outer)) == [Int, Union{CS, Missing}, Union{CS, Missing}] | ||
|
||
# joins by cid | ||
@test join(l, r, on=:cid, kind=:inner) ≅ DataFrame(id=Int[], cid=similar(l[:cid], 0), id_1=similar(r[:cid], 0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Break line at 92 chars. Same elsewhere.
test/join.jl
Outdated
@@ -465,4 +465,58 @@ module TestJoin | |||
@test join(left, right, on = [:id => :ID, :sid => :SID], kind=:anti) == | |||
DataFrame(id = 1:2, sid = string.(1:2)) | |||
end | |||
|
|||
@testset "joins with no matching rows" begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"and CategoricalArray
columns"?
1b2225d
to
76a0b14
Compare
Should be possible to rebase & merge now. |
76a0b14
to
9cc7ca4
Compare
Thanks! Rebased |
Tests pass on v0.6, nighlies fail early in joins, so it's hard to say whether anything in the new tests needs fixing. |
9cc7ca4
to
afbf86b
Compare
test situations when there are no matching rows in the left and right frames
afbf86b
to
4bced10
Compare
These tests should fail until JuliaData/CategoricalArrays.jl#111 and #1316 are merged.