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

[fix] move parquet_stats_skipping to predicates module #602

Merged

Conversation

zachschuermann
Copy link
Collaborator

@zachschuermann zachschuermann commented Dec 15, 2024

Our builds are actually broken due to a dependency on mod engine in scan/mod.rs (which only exists when one of the engine feature-flags is enabled. as soon as all are off, it fails to build). This fixes the issue by moving the parquet_stats_skipping module out of engine code and into expressions module. This was trivial since it actually doesn't depend on any engine code.

We pull parquet_stats_skipping into scan/mod.rs in order to impl ParquetStatsProvider for NoStats. Now instead of having this rely on engine code, it's moved to the predicates module (which is always included)

Note that I have a new test in CI that will catch this failure in the future: #601

@zachschuermann
Copy link
Collaborator Author

not sure why there were so many formatting changes..?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all changes are just formatting - not sure why they are just now getting applied?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all changes are just formatting - not sure why they are just now getting applied?

Copy link

codecov bot commented Dec 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.45%. Comparing base (b6558d0) to head (d0a43fa).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #602      +/-   ##
==========================================
- Coverage   83.46%   83.45%   -0.02%     
==========================================
  Files          74       74              
  Lines       16893    16877      -16     
  Branches    16893    16877      -16     
==========================================
- Hits        14100    14084      -16     
  Misses       2135     2135              
  Partials      658      658              

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

@github-actions github-actions bot added the breaking-change Change that will require a version bump label Dec 15, 2024
Copy link
Collaborator

@nicklan nicklan left a comment

Choose a reason for hiding this comment

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

lgtm!

@zachschuermann zachschuermann changed the title [fix] move parquet_stats_skipping to expressions module [fix] move parquet_stats_skipping to predicates module Dec 16, 2024
Copy link
Collaborator

@hntd187 hntd187 left a comment

Choose a reason for hiding this comment

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

LGMT

@@ -236,7 +234,7 @@ impl ParquetStatsProvider for NullCountTestFilter {
fn test_eval_is_null() {
let expressions = [
Expr::is_null(column_expr!("x")),
!Expr::is_null(column_expr!("x"))
!Expr::is_null(column_expr!("x")),
Copy link
Collaborator

Choose a reason for hiding this comment

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

huh Im surprised formatting ended up adding this comma

@zachschuermann zachschuermann merged commit 37307f5 into delta-io:main Dec 17, 2024
20 of 21 checks passed
@zachschuermann zachschuermann deleted the move-parquet-stats-skipping branch December 17, 2024 16:15
zachschuermann added a commit that referenced this pull request Dec 17, 2024
actual 0.6.0 release occurring now, ran into a build issue last friday
which was fixed in #602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Change that will require a version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants