Skip to content

Commit

Permalink
apacheGH-41095: [C++][FS][Azure] Add support for CopyFile with hierar…
Browse files Browse the repository at this point in the history
…chical namespace support (apache#41276)

### Rationale for this change

We need to add SAS (Shared Access Signatures) token for source URL.

### What changes are included in this PR?

Generate SAS token for source URL.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#41095

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored and tolleybot committed May 4, 2024
1 parent 4b55493 commit 2e1922b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cpp/src/arrow/filesystem/azurefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,6 @@ class AzureFileSystem::Impl {
}
auto src_url = GetBlobClient(src.container, src.path).GetUrl() + sas_token;
auto dest_blob_client = GetBlobClient(dest.container, dest.path);
auto src_url = GetBlobClient(src.container, src.path).GetUrl();
if (!dest.path.empty()) {
auto dest_parent = dest.parent();
if (!dest_parent.path.empty()) {
Expand Down

0 comments on commit 2e1922b

Please sign in to comment.