-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-38705: [C++][FS][Azure] Implement CopyFile() #39058
Conversation
|
@Tom-Newton @felipecrv What do you think about this behavior? I think that this is convenient but this is different from other filesystem implementations...
|
This behaviour sounds fine to me. I think there is a problem with the |
Nevermind, it looks like you've got a working implementation using |
We should not diverge from the filesystem spec (as described in the FileSystem class docstrings ). Also, at some point the Azure fs implementation will have to implement and pass the generic filesystem tests, which do have a test for this situation. |
I agree. I think we should fix #38772 before adding more operations. I implemented the |
Oh, sorry. I didn't read the docstring. I'll remove the behavior.
I've opened a new issue for it: #39069 |
I think that "Copy Blob From URL" and "Copy Blob" are the same API internally.
And |
df57308
to
f1fd538
Compare
Updated:
|
I'll merge this in a few days if nobody objects it. |
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.
LGTM
Personally I'm not particularly worried but to be rigorous @felipecrv's comment should probably be addressed.
|
OK. I've implemented it. |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 70ccf33. There were 10 benchmark results indicating a performance regression:
The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change `CopyFile()` copies the given source to the given destination. Both of source and destination must be blob name like other filesystem implementations. ### What changes are included in this PR? Use `CopyFromUri()` API that should use server-side copy. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: apache#38705 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
CopyFile()
copies the given source to the given destination. Both of source and destination must be blob name like other filesystem implementations.What changes are included in this PR?
Use
CopyFromUri()
API that should use server-side copy.Are these changes tested?
Yes.
Are there any user-facing changes?
No.
CopyFile()
#38705