-
Notifications
You must be signed in to change notification settings - Fork 71
feat: add Transform::ProjectStrict #387
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
| TEST_F(PredicateTest, BoundUnaryPredicateTestIsNull) { | ||
| ICEBERG_ASSIGN_OR_THROW(auto is_null_pred, Expressions::IsNull("name")->Bind( | ||
| *schema_, /*case_sensitive=*/true)); | ||
| ICEBERG_UNWRAP_OR_FAIL(auto is_null_pred, Expressions::IsNull("name")->Bind( |
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.
TBH, I think we should remove ICEBERG_UNWRAP_OR_FAIL in favor of ICEBERG_ASSIGN_OR_THROW because the former one cannot be used in functions with return type.
| std::unreachable(); | ||
| } | ||
|
|
||
| Result<std::unique_ptr<UnboundPredicate>> Transform::ProjectStrict( |
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.
Transform::ProjectStrict looks so similar to Transform::Project with the only difference being the calls to ProjectionUtil. Perhaps we can use template to dispatch it?
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.
After trying it by myself, I don't think this can help reduce duplicate lines. Ignore the above comment.
ceeda1d to
407abc5
Compare
wgtmac
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.
Thanks for working on this!
No description provided.