From 57e3f0329da502bdce305e2ba2947008e5b83515 Mon Sep 17 00:00:00 2001 From: LigaData-ltsentsiper <123595044+LigaData-ltsentsiper@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:46:46 -0800 Subject: [PATCH] GH-55683: [C++][FS][Azure] Use the DFS URL for the Data Lake client with SAS credentials With a SAS token, MakeDataLakeServiceClient built the DataLakeServiceClient from the blob URL. The Azure SDK sends Data Lake REST calls to the URL it is given, so the hierarchical namespace check went to the blob endpoint, got a 400 and AzureFileSystem treated a hierarchical namespace account as flat (Move() not implemented, DeleteFile() failing). Use AccountDfsUrl like every other credential kind. Co-Authored-By: Claude Sonnet 5.5 --- cpp/src/arrow/filesystem/azurefs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/filesystem/azurefs.cc b/cpp/src/arrow/filesystem/azurefs.cc index 20b0a655d8e2..8380d299867e 100644 --- a/cpp/src/arrow/filesystem/azurefs.cc +++ b/cpp/src/arrow/filesystem/azurefs.cc @@ -480,7 +480,7 @@ AzureOptions::MakeDataLakeServiceClient() const { AccountDfsUrl(account_name), storage_shared_key_credential_, client_options); case CredentialKind::kSASToken: return std::make_unique( - AccountBlobUrl(account_name) + sas_token_, client_options); + AccountDfsUrl(account_name) + sas_token_, client_options); } return Status::Invalid("AzureOptions doesn't contain a valid auth configuration"); }