Skip to content

refactor: centralize exact dataset write policy - #8025

Draft
Xuanwo wants to merge 2 commits into
xuanwo/exact-version-stack-07-readersfrom
xuanwo/exact-version-stack-08-dataset-write-policy
Draft

refactor: centralize exact dataset write policy#8025
Xuanwo wants to merge 2 commits into
xuanwo/exact-version-stack-07-readersfrom
xuanwo/exact-version-stack-08-dataset-write-policy

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Part 8/12 of #7877. Depends on #8024.

This is an independently reviewable step toward the final layout demonstrated in #7979.

This PR introduces the dataset-level write policy boundary under dataset::versions. Create, append, overwrite, update, merge-insert, fragment writing, and commit paths resolve the target exact format once and delegate version-specific writer construction through that boundary.

Append continues to inherit the manifest format, overwrite continues to accept the selected target, and unsupported operations remain explicit. The file layer is no longer asked to infer dataset policy. Broader read and operation policy migration is intentionally left to part 10.

Validation:

  • dataset write format-version tests
  • file write format-version tests
  • cargo clippy --all --tests --benches -- -D warnings

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