Skip to content

refactor: support historical Iceberg snapshot fixtures - #2

Closed
alexanderbianchi wants to merge 1 commit into
codex/iceberg-runtime-metadatafrom
codex/iceberg-time-travel-regression
Closed

alexanderbianchi wants to merge 1 commit into
codex/iceberg-runtime-metadatafrom
codex/iceberg-time-travel-regression

Conversation

@alexanderbianchi

Copy link
Copy Markdown
Owner

Stacked on datafusion-contrib#700.

Adds IcebergTestHarnessBuilder::add_snapshot(Snapshot) so tests can construct historical table states at runtime without checking in another metadata JSON fixture. The harness preserves the existing current snapshot while adding the supplied historical snapshots in Iceberg sequence order.

The included time-travel regression creates snapshot 42 with deliberately different summary statistics, registers the table with iceberg.snapshot_id = 42, and demonstrates that statistics currently come from the current snapshot instead.

The test is intentionally failing:

left: Exact(175000)
right: Exact(42)

datafusion-contrib#687 contains the selected-snapshot fix expected to make this test pass. This draft exists to demonstrate the harness API and provide a meaningful regression test for that change.

@alexanderbianchi

Copy link
Copy Markdown
Owner Author

Moved to datafusion-contrib#702 so the stacked PR and both branches live in the OSS repository.

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.

1 participant