kou commented on PR #39058:
URL: https://github.com/apache/arrow/pull/39058#issuecomment-1839825528

   > > I think there is a problem with the `CopyFromUri()` API though.
   > 
   > Nevermind, it looks like you've got a working implementation using 
`CopyFromUri()`. Maybe it does auth automatically if it detects that the source 
is in the same storage account. Or possibly the Azure SDK automatically 
switches between [Copy Blob From 
URL](https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url?tabs=microsoft-entra-id)
 and [Copy 
Blob](https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob?tabs=microsoft-entra-id)
   
   I think that "Copy Blob From URL" and "Copy Blob" are the same API 
internally.
   Both of them use the same URI and `PUT`:
   * Copy Blob From URL:  
https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url#request
   * Copy Blob: 
https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob#request
   
   And `BlobClient` provides only `CopyFromUri()`. (It doesn't provide 
`Copy()`.)
   So I used `CopyFromUri()`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to