Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Changed async ipc writer to accept schema by value #1439

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

ritchie46
Copy link
Collaborator

This change we already made for the sync variant, but not for the async one.

We accept a &Schema as argument in the FileSink constructor and then we clone it. This is a bit wasteful, as users might have constructed the schema just before they passed it.

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (574dab3) 83.76% compared to head (a49944d) 83.76%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1439   +/-   ##
=======================================
  Coverage   83.76%   83.76%           
=======================================
  Files         375      375           
  Lines       41027    41027           
=======================================
+ Hits        34365    34367    +2     
+ Misses       6662     6660    -2     
Impacted Files Coverage Δ
src/io/ipc/write/file_async.rs 81.75% <100.00%> (ø)

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jorgecarleitao jorgecarleitao changed the title feat: async ipc writer: don't accept &schema if we clone Changed async ipc writer to accept schema by value Mar 22, 2023
@jorgecarleitao jorgecarleitao merged commit 7d52276 into jorgecarleitao:main Mar 22, 2023
ritchie46 added a commit to ritchie46/arrow2 that referenced this pull request Mar 29, 2023
ritchie46 added a commit to ritchie46/arrow2 that referenced this pull request Apr 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants