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

Use isequal() to compare arrays containing nulls #81

Merged
merged 3 commits into from
Oct 5, 2017
Merged

Conversation

nalimilan
Copy link
Member

@nalimilan nalimilan commented Oct 3, 2017

This is needed to work with the next Nulls release, where == will return null in this case.

This is only the first part of the changes, the next one will have to introduce == methods for CategoricalArray to handle three-valued logic, similar to JuliaData/Missings.jl#37. EDIT: added a second commit.

The PR should probably add a requirement on the next Nulls release since the == methods it introduces wouldn't be consistent with those used by null in the current version of Nulls. EDIT: done.

@nalimilan nalimilan force-pushed the nl/≅ branch 4 times, most recently from 8c35387 to 5273a38 Compare October 4, 2017 08:39
@nalimilan nalimilan closed this Oct 5, 2017
@nalimilan nalimilan reopened this Oct 5, 2017
The newly introduced promote_rule() breaks with CategoricalValue.
This is needed to work with the next Nulls release, where == will return
null in this case.
These are equivalent to the AbstractArray{>:Null} fallback provided by Nulls,
but more efficient when comparing two CategoricalArrays.
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