test: migrate a test to use the create table builder#2482
Merged
sanujbasu merged 1 commit intodelta-io:mainfrom Apr 29, 2026
Merged
Conversation
This was referenced Apr 28, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2482 +/- ##
==========================================
- Coverage 88.43% 88.43% -0.01%
==========================================
Files 178 178
Lines 58417 58566 +149
Branches 58417 58566 +149
==========================================
+ Hits 51660 51791 +131
- Misses 4787 4788 +1
- Partials 1970 1987 +17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8136d72 to
eef3a35
Compare
eef3a35 to
348e8bb
Compare
scottsand-db
approved these changes
Apr 28, 2026
Collaborator
scottsand-db
left a comment
There was a problem hiding this comment.
LGTM but left minor feedback on two code comments
1d0621a to
32eead5
Compare
rliao147
approved these changes
Apr 28, 2026
… to kernel builder ## What changes are proposed in this pull request? Moves test_materialized_partition_columns_excluded_from_stats from kernel/tests/write/append.rs to its proper topic module kernel/tests/write/partitioned.rs, and switches its setup from the test_utils::create_table JSON helper (which hard-codes writerFeatures = ["materializePartitionColumns"]) to the kernel create_table builder using delta.feature.materializePartitionColumns=supported. The migration removes the hand-rolled protocol from the test setup so the same path that connectors will use to enable the feature is exercised end-to-end. Test assertions are unchanged. ## How was this change tested? 1/ Migrated test partitioned::test_materialized_partition_columns_excluded_from_stats passes on the new builder-based setup; assertions are unchanged. 2/ Local verification: - cargo +nightly fmt --check - cargo clippy --workspace --benches --tests --all-features -- -D warnings - cargo doc --workspace --all-features --no-deps - cargo test -p delta_kernel --all-features for affected paths
Collaborator
Author
Range-diff: stack/materialize-partition-columns-create-table (32eead5 -> a97b11b)
Reproduce locally: |
32eead5 to
a97b11b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
Moves test_materialized_partition_columns_excluded_from_stats from kernel/tests/write/append.rs to its proper topic module kernel/tests/write/partitioned.rs, and switches its setup from the test_utils::create_table JSON helper (which hard-codes writerFeatures = ["materializePartitionColumns"]) to the kernel create_table builder using delta.feature.materializePartitionColumns=supported.
The migration removes the hand-rolled protocol from the test setup so the same path that connectors will use to enable the feature is exercised end-to-end. Test assertions are unchanged.
How was this change tested?
1/ Migrated test partitioned::test_materialized_partition_columns_excluded_from_stats passes on the new builder-based setup; assertions are unchanged.
2/ Local verification: