Skip to content
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

Merged
merged 2 commits into from
Mar 15, 2024
Merged

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Mar 12, 2024

This will enable use to delete whole datafiles by evaluating the metrics, and not needing to open the Parquet files.

@Fokko Fokko force-pushed the fd-add-strict-metrics-evaluator branch from c79e9cc to b618e9c Compare March 12, 2024 13:47
This will enable use to delete whole datafiles by evaluating
the metrics, and not needing to open the Parquet files.
@Fokko Fokko force-pushed the fd-add-strict-metrics-evaluator branch from b618e9c to c36e6dc Compare March 12, 2024 13:50
Copy link
Contributor

@HonahX HonahX left a 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

Comment on lines 1473 to 1475
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}")
Copy link
Contributor

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

Copy link
Contributor Author

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 👍

@Fokko Fokko merged commit b447461 into apache:main Mar 15, 2024
7 checks passed
@Fokko Fokko deleted the fd-add-strict-metrics-evaluator branch March 15, 2024 09:34
@Fokko
Copy link
Contributor Author

Fokko commented Mar 15, 2024

Thanks @HonahX for the review 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants