GH-55683: [C++][FS][Azure] Use the DFS URL for the Data Lake client with SAS credentials #55684
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 202 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.318
Real PR Conversation Timeline
1 comments
"Review active on #55684"
general
weight: 0.35
Sumdiboii
Rationale for this change
With a SAS token,
MakeDataLakeServiceClientbuilds theDataLakeServiceClientfrom the blob URL. The Azure SDK sendsData Lake REST calls to the URL it is given, so the hierarchical namespace check goes to the blob endpoint, gets a 400, and
AzureFileSystemtreats a hierarchical namespace account as flat:Move()is "not implemented" andDeleteFile()fails.What changes are included in this PR?
MakeDataLakeServiceClientusesAccountDfsUrl(account_name) + sas_token_for the SAS credential kind, like every othercredential kind.
Are these changes tested?
Manually, against a real storage account with hierarchical namespace: a small program calling
AzureFileSystemdirectly(
CreateDir, write,Move(),GetFileInfo,DeleteFile, results in the issue) with stock and patched 26.0.1 and anaccount SAS, and an application that writes Parquet files and renames them (2,000,000 rows) with an account SAS and a
container SAS. No automated test: the existing Azure tests run against Azurite, which has no hierarchical namespace.
A unit test in
TestAzureOptionscould buildAzureOptionswith a SAS token and check thatMakeDataLakeServiceClient()->GetUrl()uses thedfshost; I have not written or run it, and can add it if wanted.Are there any user-facing changes?
SAS token users on hierarchical namespace accounts get the hierarchical namespace code paths (
Move(),DeleteFile(),CreateDir) instead of the flat namespace ones.🤖 Generated with Claude Code