-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Avoid redundant Schema clones #17643
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
Conversation
b4348ad
to
7ed3bff
Compare
7ed3bff
to
525fd9c
Compare
Do you have a programmatic way to find these? I'd be curious to give Comet a pass, if so. |
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 @findepi -- I had a suggestion to make the syntax more clear, but this looks like a major improvement to me already
I commented out those expensive |
3b354fc
to
5fdec0c
Compare
} | ||
|
||
pub fn table_source(table_schema: &Schema) -> Arc<dyn TableSource> { | ||
// TODO should we take SchemaRef and avoid cloning? |
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 do this in #17675
Avoid cloning
Schema
structs.