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

feat(rust): derive Copy on some public enums #2329

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

lasantosr
Copy link
Contributor

Description

This PR derives the Copy trait on public enums that had the Clone trait derived, when applicable.

@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Mar 24, 2024
@github-actions github-actions bot added the binding/python Issues for the Python package label Mar 24, 2024
@@ -386,7 +386,7 @@ impl PartitionWriter {
self.flush_arrow_writer().await?;
}
}
self.arrow_writer.flush();
self.arrow_writer.flush()?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've also included this non-related change, because the arrow result was not being used, but it should.

@@ -997,7 +997,7 @@ async fn execute(

let source_schema = source.schema();
let target_schema = target.schema();
let join_schema_df = build_join_schema(source_schema, &target_schema, &JoinType::Full)?;
let join_schema_df = build_join_schema(source_schema, target_schema, &JoinType::Full)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this not a reference anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a clippy warning, because target.schema() already returns a reference, so that double reference was being automatically dereferenced.

Copy link
Collaborator

@ion-elgreco ion-elgreco left a comment

Choose a reason for hiding this comment

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

Thanks! @lasantosr

@ion-elgreco ion-elgreco merged commit e58df28 into delta-io:main Mar 29, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants