-
Notifications
You must be signed in to change notification settings - Fork 57
feat: scaffolding work for expression #177
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
wgtmac
commented
Aug 15, 2025
- Add interface for term, unbound, bound, reference, predicate, etc.
- Add factory to create expressions.
0bd5939
to
ca00452
Compare
c1c25e7
to
b86dda1
Compare
17bd1f8
to
5a49c08
Compare
This PR is ready for review. It looks pretty similar to the Java equivalent. Let me know what you think. @dongxiao1198 @lidavidm @mapleFU @yingcai-cy @zhjwpku |
@lidavidm Do you have any comment about this PR? |
case Expression::Operation::kTrue: | ||
case Expression::Operation::kFalse: | ||
case Expression::Operation::kNot: |
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.
shouldn't there be negations for these?
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.
@zeroshade Thanks for your review! I think I've addressed all your comments. Please check. |
src/iceberg/expression/expression.cc
Outdated
case Expression::Operation::kAnd: | ||
case Expression::Operation::kOr: |
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.
This is interesting, we can negate and
and or
through the Morgan's law
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.
Done!
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.
This looks like a great start! Thanks for working on this @wgtmac, and thanks @zeroshade, @dongxiao1198, @zhjwpku, @mapleFU, @gty404 for the reviews 🙌
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.
Looks good! Thanks!
Thanks all! |