Repository navigation
Add Delta Lake tests with tables from delta-rs and duckdb-delta - #129094
Merged
Merged
Conversation
Adopt Delta tables from the test suites of delta-rs (Apache-2.0) and duckdb-delta (MIT) as stateless tests reading them with `deltaLakeLocal`. Expected rows were taken from upstream assertions where they exist and otherwise checked against an independent replay of the Delta log over the raw Parquet files. - `05550_delta_lake_delta_rs_legacy_writers`: tables written by Delta 0.2/0.8/1.2.1, delta-rs Python 0.25.5, `checkpointProtection`, a stale `_last_checkpoint`, statistics only in `stats_parsed` or missing. - `05551_delta_lake_delta_rs_partitions`: NULL and URI-escaped partition values, numeric and typed partitions, partition columns renamed or with spaces under column mapping. - `05552_delta_lake_delta_rs_log_only_tables`: log replay, checkpoints and time travel on tables with only `_delta_log`, including vacuumed versions. - `05553_delta_lake_delta_rs_table_features`: deletion vectors with checkpoints, in-commit timestamps, liquid clustering with row tracking, out-of-range INT96, an unknown reader feature, `Variant`. - `05554_delta_lake_duckdb_column_mapping`: column mapping fixtures in `id` and `name` modes, Spark-written renames, partitions and quoted field names, invalid annotations. - `05555_delta_lake_duckdb_fixtures`: Spark INT96 in nested types, in-commit timestamps, partition filters, `char`/`varchar`, unsupported types, catalog-managed tables. Fixtures that ClickHouse currently reads incorrectly are present but not queried; the reasons are listed in the header of `05554_delta_lake_duckdb_column_mapping.sh`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [3c2aa1b] Summary: ✅ AI ReviewSummaryAdds six stateless interoperability tests for Missing context / blind spots
Final VerdictStatus: ✅ Approve. No changes requested. |
…fixtures The columns `ls` (`Array(Tuple(...))`) and `m` (`Map(..., Tuple(...))`) of `spark_nested_name_mode` and `spark_nested_id_mode` were not queried because ClickHouse read them incorrectly; it is fixed now. The results are the same as expected by duckdb-delta. Related: #129103 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Adopt Delta tables from the test suites of delta-rs (Apache-2.0,
crates/test/tests/data, commit460c9040) and duckdb-delta (MIT,data/inlined, commit94dde628, license notice included) as stateless tests that read them withdeltaLakeLocal. The data is 3.5 MB undertests/queries/0_stateless/data_delta_lake/{delta_rs,duckdb}with provenance READMEs. Tables duplicating the delta-kernel-rs test data were skipped.Expected rows come from upstream assertions where they exist (delta-rs Python/Rust tests, duckdb-delta sqllogictests) and were otherwise checked against an independent replay of the Delta log over the raw Parquet files.
Coverage: tables written by old Delta/delta-rs writers, stale
_last_checkpoint, checkpoints withstats_parsedonly or no statistics,checkpointProtection, log-only tables (time travel, vacuumed versions), NULL and URI-escaped partition values, typed partitions, column mapping inidandnamemodes (renames, partitions, quoted names, legacy protocol, invalid annotations), deletion vectors with checkpoints, in-commit timestamps, liquid clustering with row tracking, Spark INT96 in nested types, and refusal of unknown reader features, unsupported types, catalog-managed tables andVariant.Fixtures that ClickHouse currently reads incorrectly are committed but not queried; see the header of
05554_delta_lake_duckdb_column_mapping.sh:idmode, columns are resolved by physical name instead of the Parquet field id, so files that name columns by logical name read as default values (id_mode_logical_names,id_mode_nested_struct,id_mode_containers_nested_ids), and unresolvable files return default values instead of an error.delta.columnMapping.modewithout thecolumnMappingfeature is refused by delta-kernel-rs instead of being ignored.Related: #129103
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/129094]
Version info
26.11.1.1473-master(included in26.11and later)