← Back to Pull requests

GH-55683: [C++][FS][Azure] Use the DFS URL for the Data Lake client with SAS credentials #55684

Open
unknown opened this pull request with 202 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 20, 2026 00:47 UTC
Author

Rationale for this change

With a SAS token, MakeDataLakeServiceClient builds 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 goes to the blob endpoint, gets a 400, and
AzureFileSystem treats a hierarchical namespace account as flat: Move() is "not implemented" and DeleteFile() fails.

What changes are included in this PR?

MakeDataLakeServiceClient uses AccountDfsUrl(account_name) + sas_token_ for the SAS credential kind, like every other
credential kind.

Are these changes tested?

Manually, against a real storage account with hierarchical namespace: a small program calling AzureFileSystem directly
(CreateDir, write, Move(), GetFileInfo, DeleteFile, results in the issue) with stock and patched 26.0.1 and an
account 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 TestAzureOptions could build AzureOptions with a SAS token and check that
MakeDataLakeServiceClient()->GetUrl() uses the dfs host; 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.

  • Closes: GH-55683
  • 🤖 Generated with Claude Code

    Diff: 202 lines (+151 / -51) across 2 files Reviewer: Sumdiboii Review duration: 17675m
    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
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.2% (MEDIUM) · Higher = larger blast radius
    36.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.7% · Safe to merge
    20.7%
    Repository