Skip to content

refactor: Rename predicates mod to kernel_predicates #822

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

Merged
merged 2 commits into from
Apr 11, 2025

Conversation

scovich
Copy link
Collaborator

@scovich scovich commented Apr 10, 2025

What changes are proposed in this pull request?

The predicates module has a confusing name because it sits alongside the expressions module but does not actually define predicates (= boolean-valued expressions) at all. Instead, it contains kernel's implementation of predicate evaluation, used for e.g. data skipping and partition pruning.

Rename the module to kernel_predicates and rename corresponding classes like PredicateEvaluator to KernelPredicateEvaluator, to make their purpose more clear. This also helps clear the way for us to split out predicates as a separate concept from normal expressions, see #765.

How was this change tested?

Module and class renames only. Compilation suffices.

Copy link

codecov bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 96.96970% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.03%. Comparing base (e74d18b) to head (b061724).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...el/src/kernel_predicates/parquet_stats_skipping.rs 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #822      +/-   ##
==========================================
+ Coverage   85.01%   85.03%   +0.02%     
==========================================
  Files          84       84              
  Lines       20656    20657       +1     
  Branches    20656    20657       +1     
==========================================
+ Hits        17561    17566       +5     
+ Misses       2228     2226       -2     
+ Partials      867      865       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@zachschuermann zachschuermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM one nit/idea!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: might help to have some module-level documentation to help guide readers on what a kernel_predicate encompasses?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracked as a follow-up: #828

@scovich scovich merged commit b8ae33f into delta-io:main Apr 11, 2025
21 checks passed
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.

3 participants