Skip to content

Alias hf:// to xet:// in httpfs - #91

Merged
adsharma merged 1 commit into
LadybugDB:mainfrom
adsharma:hf-alias-xet
Sep 28, 2026
Merged

adsharma merged 1 commit into
LadybugDB:mainfrom
adsharma:hf-alias-xet

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

Other databases such as duckdb use hf:// URLs for Hugging Face content. Route hf:// through XetFileSystem so both schemes resolve identically to https://huggingface.co URLs.

  • XetFileSystem::canHandleFile accepts xet:// and hf://
  • toHuggingFaceURL strips either prefix (same mapping, shared redirect cache)
  • LocalFileSystem::isLocalPath change follows in LadybugDB/ladybug

Other databases such as duckdb use hf:// URLs for Hugging Face
content. Route hf:// through XetFileSystem so both schemes resolve
identically.
@adsharma
adsharma merged commit bf74ab6 into LadybugDB:main Sep 28, 2026
2 checks passed
@adsharma
adsharma deleted the hf-alias-xet branch September 28, 2026 21:10
adsharma added a commit to adsharma/ladybug that referenced this pull request Sep 28, 2026
adsharma added a commit to LadybugDB/ladybug that referenced this pull request Sep 28, 2026
Pairs with the httpfs change aliasing hf:// to xet://
(LadybugDB/extensions#91) so hf:// URLs are routed to the httpfs
extension instead of being mistaken for local files.
adsharma added a commit to LadybugDB/ladybug that referenced this pull request Sep 28, 2026
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.

1 participant