-
Notifications
You must be signed in to change notification settings - Fork 421
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
Conversation
@@ -386,7 +386,7 @@ impl PartitionWriter { | |||
self.flush_arrow_writer().await?; | |||
} | |||
} | |||
self.arrow_writer.flush(); | |||
self.arrow_writer.flush()?; |
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.
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)?; |
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.
Why is this not a reference anymore?
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.
That's a clippy warning, because target.schema()
already returns a reference, so that double reference was being automatically dereferenced.
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.
Thanks! @lasantosr
Description
This PR derives the
Copy
trait on public enums that had theClone
trait derived, when applicable.