Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huggingface URLs don't work #1907

Open
alexkreidler opened this issue Nov 2, 2024 · 0 comments
Open

huggingface URLs don't work #1907

alexkreidler opened this issue Nov 2, 2024 · 0 comments

Comments

@alexkreidler
Copy link

What happens?

I can't use the Huggingface URL Scheme supported by the HTTPFS extension: SELECT * FROM 'hf://datasets/<username>/<dataset>/<file>.csv|parquet|jsonl;

When running these in the DuckDB-WASM Shell, I get:

CREATE VIEW train AS (SELECT * FROM read_parquet('hf://datasets/harvard-lil/cold-cases@~parquet/default/train/*.parquet'));
IO Error: No files found that match the pattern "hf://datasets/harvard-lil/cold-cases@~parquet/default/train/*.parquet"

SELECT count(*) FROM 'hf://datasets/harvard-lil/cold-cases/*.parquet';
IO Error: No files found that match the pattern "hf://datasets/harvard-lil/cold-cases/*.parquet"

Both of these queries work in the DuckDB CLI on my local machine.

To Reproduce

https://shell.duckdb.org/#queries=v0,CREATE-VIEW-train-AS-(SELECT-*-FROM-read_parquet('hf%3A%2F%2Fdatasets%2Fharvard%20lil%2Fcold%20cases%40%3Bparquet%2Fdefault%2Ftrain%2F*.parquet'))~,SELECT-count(*)-FROM-'hf%3A%2F%2Fdatasets%2Fharvard%20lil%2Fcold%20cases%2F*.parquet'~

Browser/Environment:

Firefox

Device:

Windows laptop

DuckDB-Wasm Version:

1.1.2

DuckDB-Wasm Deployment:

shell.duckdb.org

Full Name:

Alex Kreidler

Affiliation:

independent

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

No branches or pull requests

1 participant