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

Test non-matching joins #1317

Merged
merged 2 commits into from
Jan 12, 2018
Merged

Conversation

alyst
Copy link
Contributor

@alyst alyst commented Dec 13, 2017

These tests should fail until JuliaData/CategoricalArrays.jl#111 and #1316 are merged.

@alyst alyst force-pushed the test_nonmatching_joins branch from 402e487 to 4da8fc9 Compare December 13, 2017 12:21
Copy link
Member

@nalimilan nalimilan left a 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))
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"and CategoricalArray columns"?

@alyst alyst force-pushed the test_nonmatching_joins branch 2 times, most recently from 1b2225d to 76a0b14 Compare December 14, 2017 16:34
@nalimilan
Copy link
Member

Should be possible to rebase & merge now.

@alyst alyst force-pushed the test_nonmatching_joins branch from 76a0b14 to 9cc7ca4 Compare December 18, 2017 15:03
@alyst
Copy link
Contributor Author

alyst commented Dec 18, 2017

Thanks! Rebased

@alyst
Copy link
Contributor Author

alyst commented Dec 18, 2017

Tests pass on v0.6, nighlies fail early in joins, so it's hard to say whether anything in the new tests needs fixing.

@alyst alyst force-pushed the test_nonmatching_joins branch from 9cc7ca4 to afbf86b Compare December 19, 2017 17:04
alyst added 2 commits January 12, 2018 14:22
test situations when there are no matching rows in the left and right
frames
@alyst alyst force-pushed the test_nonmatching_joins branch from afbf86b to 4bced10 Compare January 12, 2018 13:32
@alyst alyst self-assigned this Jan 12, 2018
@alyst alyst requested a review from nalimilan January 12, 2018 14:09
@nalimilan nalimilan merged commit b19f5f2 into JuliaData:master Jan 12, 2018
@alyst alyst deleted the test_nonmatching_joins branch January 12, 2018 16:32
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

Successfully merging this pull request may close these issues.

2 participants