-
Notifications
You must be signed in to change notification settings - Fork 703
fix(dataset): resolve Blob v2 external URIs and robustly clean failed writes in add_columns #7152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1792,7 +1792,7 @@ impl FileFragment { | |
| read_columns: Option<Vec<String>>, | ||
| batch_size: Option<u32>, | ||
| ) -> Result<(Fragment, Schema)> { | ||
| let (fragments, schema) = schema_evolution::add_columns_to_fragments( | ||
| let (fragments, schema, _) = schema_evolution::add_columns_to_fragments( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we keep
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. I think this is a broader follow-up than the current blob-v2 add_columns fix. This PR is scoped to the dataset-level add_columns cleanup path. Keeping I’d prefer to keep this PR focused and handle that as a separate follow-up PR, |
||
| self.dataset.as_ref(), | ||
| transforms, | ||
| read_columns, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we at least add a test case about fail-then-cleanup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I'll add a fail-then-cleanup regression test so we cover the partial-write path, not just the success case.