-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-14912: [C++] implement GcsFileSystem::CopyFile #11797
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
ARROW-14912: [C++] implement GcsFileSystem::CopyFile #11797
Conversation
|
The |
pitrou
left a comment
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.
Thank you for doing this. LGTM, just a suggestion.
| auto fs = internal::MakeGcsFileSystemForTest(TestGcsOptions()); | ||
| const auto destination_path = kPreexistingBucket + std::string("/copy-destination"); | ||
| const auto status = fs->CopyFile(NotFoundObjectPath(), destination_path); | ||
| EXPECT_EQ(status.code(), StatusCode::IOError); |
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.
Nit: this can be shortened to:
ASSERT_RAISES(IOError, fs->CopyFile(NotFoundObjectPath(), destination_path));If the error message is predictable enough, you could also test for it using e.g.:
EXPECT_RAISES_WITH_MESSAGE_THAT(IOError, ::testing::HasSubstr("xxx"),
fs->CopyFile(NotFoundObjectPath(), destination_path));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.
Done. PTAL.
|
Benchmark runs are scheduled for baseline = 8daa7a4 and contender = 996a08b. 996a08b is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
No description provided.