Skip to content

Conversation

@DrakeLin
Copy link
Collaborator

@DrakeLin DrakeLin commented Jan 20, 2026

🥞 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?

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.15%. Comparing base (2f74fd3) to head (16e428c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
kernel/src/scan/data_skipping/stats_schema.rs 90.90% 0 Missing and 1 partial ⚠️
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.
📢 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.

@DrakeLin DrakeLin changed the title nullable transform refactor: consolidate nullable stat transforms Jan 20, 2026
@DrakeLin DrakeLin requested review from dengsh12 and nicklan January 20, 2026 19:56
@DrakeLin DrakeLin force-pushed the stack/nullable-transform branch from 10ecc86 to 318087c Compare January 20, 2026 20:29
@DrakeLin DrakeLin force-pushed the stack/nullable-transform branch from 318087c to c8c1f6b Compare January 20, 2026 20:55
@DrakeLin DrakeLin force-pushed the stack/nullable-transform branch from c8c1f6b to 0568a9b Compare January 20, 2026 21:14
@DrakeLin DrakeLin marked this pull request as ready for review January 20, 2026 21:26
Copy link
Collaborator

@dengsh12 dengsh12 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot removed the breaking-change Change that require a major version bump label Jan 21, 2026
DrakeLin added a commit that referenced this pull request Jan 21, 2026
)

## 🥞 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
@DrakeLin DrakeLin force-pushed the stack/nullable-transform branch from 4e8fd3c to 16e428c Compare January 21, 2026 20:10
@DrakeLin DrakeLin merged commit 435b94e into delta-io:main Jan 21, 2026
22 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