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

refactor: avoid async_trait for FileWrite and provide extra dyn methods #762

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wenym1
Copy link

@wenym1 wenym1 commented Dec 6, 2024

With the same motivation to #760, but for the FileWrite trait.

@@ -213,7 +213,7 @@ impl SchemaVisitor for IndexByParquetPathName {
pub struct ParquetWriter {
schema: SchemaRef,
out_file: OutputFile,
writer: AsyncArrowWriter<AsyncFileWriter<TrackWriter>>,
writer: AsyncArrowWriter<AsyncFileWriter<TrackWriter<opendal::Writer>>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm reluctant to have 3rd party classes in our API.

Copy link
Author

Choose a reason for hiding this comment

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

Changed to use a opaque type defined by TAIT to hide the 3rd party type.

@wenym1 wenym1 requested a review from Fokko December 11, 2024 06:35
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