Uh oh!
There was an error while loading. Please reload this page.
GH-38705: [C++][FS][Azure] Implement CopyFile() - #39058
Conversation
kou
commented
Dec 4, 2023
@Tom-Newton@felipecrv What do you think about this behavior? I think that this is convenient but this is different from other filesystem implementations...
|
Tom-Newton
commented
Dec 4, 2023
This behaviour sounds fine to me. I think there is a problem with the |
Tom-Newton
commented
Dec 4, 2023
Nevermind, it looks like you've got a working implementation using |
pitrou
commented
Dec 4, 2023
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. |
felipecrv
commented
Dec 4, 2023
I agree. I think we should fix #38772 before adding more operations. I implemented the |
kou
commented
Dec 5, 2023
Oh, sorry. I didn't read the docstring. I'll remove the behavior.
I've opened a new issue for it: #39069 |
kou
commented
Dec 5, 2023
I think that "Copy Blob From URL" and "Copy Blob" are the same API internally.
And |
df57308 to
f1fd538Comparekou
commented
Dec 5, 2023
Updated:
|
kou
commented
Dec 6, 2023
I'll merge this in a few days if nobody objects it. |
Personally I'm not particularly worried but to be rigorous @felipecrv's comment should probably be addressed.
|
kou
commented
Dec 7, 2023
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