-
Notifications
You must be signed in to change notification settings - Fork 139
refactor: consolidate nullable stat transforms #1636
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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1636 +/- ##
==========================================
- Coverage 84.16% 84.15% -0.01%
==========================================
Files 123 123
Lines 34214 34180 -34
Branches 34214 34180 -34
==========================================
- Hits 28796 28764 -32
Misses 4021 4021
+ Partials 1397 1395 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
10ecc86 to
318087c
Compare
318087c to
c8c1f6b
Compare
c8c1f6b to
0568a9b
Compare
dengsh12
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.
LGTM
) ## 🥞 Stacked PR Use this [link](https://github.com/delta-io/delta-kernel-rs/pull/1635/files) to review incremental changes. - [**stack/propagate-nulls**](#1635) [[Files changed](https://github.com/delta-io/delta-kernel-rs/pull/1635/files)] - [stack/nullable-transform](#1636) [[Files changed](https://github.com/delta-io/delta-kernel-rs/pull/1636/files/b3b511b3b11aada328cf613b92bc851b3095efaf..0568a9b8b1ffaa6d6128fd05abff3f6820e1fd76)] - [stack/has_compatible_parsed_stats](#1638) [[Files changed](https://github.com/delta-io/delta-kernel-rs/pull/1638/files/0568a9b8b1ffaa6d6128fd05abff3f6820e1fd76..f840878ae0ca1db97d51512dca0ba7dff1b8371e)] - [stack/read-parsed-stats](#1639) [[Files changed](https://github.com/delta-io/delta-kernel-rs/pull/1639/files/f840878ae0ca1db97d51512dca0ba7dff1b8371e..f0e4680cab79fb7d6878cda709fc55119449d680)] --------- ## What changes are proposed in this pull request? Change apply_schema to propagate top-level struct nulls to child columns instead of erroring - Remove the error check for top-level nulls in apply_schema - Document that child columns are expected to already have nulls propagated (Arrow's JSON reader does this automatically, and parquet data goes through fix_nested_null_masks) - Add comprehensive test case test_apply_schema_handles_top_level_null ## How was this change tested? Edited unit tests Added unit test to show new behavior
4e8fd3c to
16e428c
Compare
🥞 Stacked PR
Use this link to review incremental changes.
What changes are proposed in this pull request?
This PR consolidates duplicated NullableStatsTransform and NullCountStatsTransform implementations into a single shared location.
How was this change tested?