-
Notifications
You must be signed in to change notification settings - Fork 70
feat:add init expression interface. #58
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
Conversation
zhjwpku
left a comment
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'm wondering should we add some subdirs below iceberg, this feature seems not be in the spec?
| const auto& other = static_cast<const And&>(expr); | ||
| return (left_->Equals(*other.left()) && right_->Equals(*other.right())) || | ||
| (left_->Equals(*other.right()) && right_->Equals(*other.left())); |
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.
In Java we call this isEquivalentTo: https://github.com/apache/iceberg/blob/97d1107d60b42d29306c663f23f869fc1d439e6b/api/src/main/java/org/apache/iceberg/expressions/Or.java#L43-L52, which is different from being equal. Should we follow the same naming for clarity?
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.
Good suggestion! In the first version, it was isEquivalentTo. I followed the style of other classes in the codebase and switched to Equals for consistency.
zhjwpku
left a comment
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, thanks
Fokko
left a comment
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.
@yingcai-cy Can you rebase against main to resolve the conflict? Thanks!
Xuanwo
left a comment
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 this great work!
|
Thanks @yingcai-cy for working on this, and thanks @alonesniper, @gty404, @lidavidm, @wgtmac, @Xuanwo and @zhjwpku for the review 🙌 Great to have this in! |
No description provided.