-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-10420: [C++] Refactor io and filesystem APIs to take an IOContext #9474
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -160,6 +160,13 @@ Status FileWriter::Write(RecordBatchReader* batches) { | |
| return Status::OK(); | ||
| } | ||
|
|
||
| Status FileWriter::Finish() { | ||
| RETURN_NOT_OK(FinishInternal()); | ||
| return destination_->Close(); | ||
|
||
| } | ||
|
|
||
| namespace { | ||
|
|
||
| constexpr util::string_view kIntegerToken = "{i}"; | ||
|
|
||
| Status ValidateBasenameTemplate(util::string_view basename_template) { | ||
|
|
@@ -257,6 +264,8 @@ class WriteQueue { | |
| std::shared_ptr<Schema> schema_; | ||
| }; | ||
|
|
||
| } // namespace | ||
|
|
||
| Status FileSystemDataset::Write(const FileSystemDatasetWriteOptions& write_options, | ||
| std::shared_ptr<Scanner> scanner) { | ||
| RETURN_NOT_OK(ValidateBasenameTemplate(write_options.basename_template)); | ||
|
|
||
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.
Note that the CPU and IO executors were passed in the wrong order here.