-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add support for isNull and isNotNull conditions #529
Add support for isNull and isNotNull conditions #529
Conversation
IS_NULL, | ||
IS_NOT_NULL |
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.
Added the new operators, IS_NULL
and IS_NOT_NULL
.
.compareTrueFirst(hasNullValue(), o.hasNullValue()) | ||
.compare(getBigIntValue(), o.getBigIntValue()) |
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.
I made small changes for the compareTo
methods of XXXColumn
in this PR.
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.
LGTM! Thank you!
Left one comment about the seemingly unrelated changes in the PR.
* | ||
* @author Yuji Ito | ||
*/ | ||
@NotThreadSafe | ||
public final class ValueBinder implements ValueVisitor { | ||
public final class ValueBinder implements ColumnVisitor { |
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.
Are these intended changes for this PR? (looks like coming from a previous PR or it's left unchanged in the previous PR?)
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.
Thank you for taking at this PR!
In the previous PR, I didn't remove all the usages of ValueVisitor
, and I thought I was going to do that in another PR. But the changes were needed for this isNull
and isNotNull
conditions support, so I did it in this PR. I will remove the rest of the usages of ValueVisitor
in another PR. Thanks.
This PR adds a support for
isNull
andisNotNull
conditions for conditional mutations.We can specify
isNull
andisNotNull
conditions as follows:Please take a look!