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

Fix type comparison for java [skip ci] #6970

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

revans2
Copy link
Contributor

@revans2 revans2 commented Dec 10, 2020

As a part of trying to support upper and lower bounds for decimal I found that type checking for this function was broken because it used == for equality instead of .equals. Looking further I found a few other places where this was a bug (one in ColumnVector that is mostly a performance issue and one in Scalar) I decided to update all of the code to use .equals for comparison of types to make it consistent so it is less likely to have bugs like this crop up in the future.

I also took the opportunity to internally move away from using isTimestamp (which is deprecated) to isTimestampType

@revans2 revans2 added bug Something isn't working 3 - Ready for Review Ready for review by team Java Affects Java cuDF API. Spark Functionality that helps Spark RAPIDS 4 - Needs cuDF (Java) Reviewer non-breaking Non-breaking change labels Dec 10, 2020
@revans2 revans2 self-assigned this Dec 10, 2020
@revans2 revans2 requested a review from a team as a code owner December 10, 2020 16:13
@jlowe jlowe added 5 - Ready to Merge Testing and reviews complete, ready to merge 6 - Okay to Auto-Merge and removed 4 - Needs cuDF (Java) Reviewer labels Dec 10, 2020
@rapids-bot rapids-bot bot merged commit dc05261 into rapidsai:branch-0.18 Dec 10, 2020
@revans2 revans2 deleted the fix_java_type_checks branch December 10, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team 5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working Java Affects Java cuDF API. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants