-
Notifications
You must be signed in to change notification settings - Fork 201
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 StrictMetricsEvaluator #518
Conversation
c79e9cc
to
b618e9c
Compare
This will enable use to delete whole datafiles by evaluating the metrics, and not needing to open the Parquet files.
b618e9c
to
c36e6dc
Compare
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 for the great effort @Fokko
pyiceberg/expressions/visitors.py
Outdated
field = self.struct.field(field_id=field_id) | ||
if field is None: | ||
raise ValueError(f"Cannot find field, might be nested or missing: {field_id}") |
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.
Shall we extract this block to a method since it is used in many places? I think this can make it easy to update the error message later
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.
That's a good suggestion, I've extracted it out into a separate function 👍
Thanks @HonahX for the review 👍 |
This will enable use to delete whole datafiles by evaluating the metrics, and not needing to open the Parquet files.