Skip to content
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

Preparing for deltalake v0.17 #162

Merged
merged 5 commits into from
Jan 9, 2024
Merged

Preparing for deltalake v0.17 #162

merged 5 commits into from
Jan 9, 2024

Conversation

rtyler
Copy link
Member

@rtyler rtyler commented Jan 6, 2024

Lots of refactorings necessary, the dynamodb lock mechanism will be changing too!

@rtyler rtyler force-pushed the deltalake-0.17-prep branch from 5b9d1cb to a303d18 Compare January 6, 2024 21:46
@rtyler rtyler force-pushed the deltalake-0.17-prep branch from a303d18 to 0f259a2 Compare January 6, 2024 21:52
@rtyler
Copy link
Member Author

rtyler commented Jan 7, 2024

I am building other branches off of this one to help do integration testing and qualification of the next deltalake crate release

@rtyler rtyler marked this pull request as ready for review January 7, 2024 21:04
@rtyler rtyler enabled auto-merge (rebase) January 7, 2024 21:05
@rtyler rtyler requested a review from mightyshazam January 8, 2024 16:22
@@ -754,7 +754,7 @@ impl IngestProcessor {
let dlq = dead_letter_queue_from_options(&opts).await?;
let transformer = Transformer::from_transforms(&opts.transforms)?;
let table = delta_helpers::load_table(table_uri, HashMap::new()).await?;
let coercion_tree = coercions::create_coercion_tree(&table.get_metadata()?.schema);
let coercion_tree = coercions::create_coercion_tree(table.schema().unwrap());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why switch from ? to unwrap? While this shouldn't really be a candidate for panicking, it is a possibility. Is that what we want?

@@ -947,11 +947,11 @@ impl IngestProcessor {

if self
.delta_writer
.update_schema(self.table.get_metadata()?)?
.update_schema(self.table.state.delta_metadata().unwrap())?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

{
info!("Table schema has been updated");
// Update the coercion tree to reflect the new schema
let coercion_tree = coercions::create_coercion_tree(&self.table.get_metadata()?.schema);
let coercion_tree = coercions::create_coercion_tree(self.table.schema().unwrap());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Collaborator

@mightyshazam mightyshazam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I see that the delta crate has changed some things from results to options. That explains the unwrap calls replacing the ? operations. We should consider addressing it at some point.

@rtyler rtyler merged commit 8b441a5 into main Jan 9, 2024
3 checks passed
@rtyler rtyler deleted the deltalake-0.17-prep branch January 9, 2024 14:32
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.

2 participants