Skip to content

Fix/onelake dfs trailing slash v1.5#180

Merged
benfleis merged 7 commits into
duckdb:v1.5-variegatafrom
benfleis:fix/onelake-dfs-trailing-slash--v1.5
Jul 14, 2026
Merged

Fix/onelake dfs trailing slash v1.5#180
benfleis merged 7 commits into
duckdb:v1.5-variegatafrom
benfleis:fix/onelake-dfs-trailing-slash--v1.5

Conversation

@benfleis

Copy link
Copy Markdown
Member

Re PR #177 , noted here

benfleis and others added 7 commits June 11, 2026 13:35
A trailing '/' is a directory hint, not part of the resource name, but it
was passed straight into GetFileClient(parsed_url.path). OneLake's DFS
endpoint rejects a GetProperties on a trailing-slash path with
403 AuthenticationFailed (the slash-less path returns 200), so any
DirectoryExists/FileExists/glob on a directory fails. This breaks e.g.
duckdb-delta partitioned writes, which probe the table directory.

Strip a single trailing slash from the path used to build the file client.
info.path is left untouched, so the directory-marker check in
LoadRemoteFileInfo still works.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@benfleis
benfleis merged commit 003214c into duckdb:v1.5-variegata Jul 14, 2026
17 of 18 checks passed
@benfleis

Copy link
Copy Markdown
Member Author

Mac OS Build fail was ephemeral, same build passed locally and in my account's CI.

@benfleis
benfleis deleted the fix/onelake-dfs-trailing-slash--v1.5 branch July 14, 2026 07:27
@djouallah

Copy link
Copy Markdown
Contributor

thanks, it works, at least now i have the real limitation delta does not support partition :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants