--- license: apache-2.0 pretty_name: SciExp Fixtures tags: - test-fixtures - duckdb - ducklake size_categories: - n<1K --- # sciexp/fixtures Test fixtures and example datasets for [sciexp](https://github.com/sciexp). ## Quick start ```sh git clone https://huggingface.co/datasets/sciexp/fixtures cd fixtures git lfs pull ``` ## Datasets ### Space dataset A relational dataset about space exploration demonstrating DuckLake workflows. Contains tables for astronauts, missions, spacecraft, and mission crew assignments. ```sh duckdb -box < queries/space.sql ```
Manual DuckDB session DuckDB can access Hugging Face datasets directly via the [hf:// protocol](https://huggingface.co/docs/hub/datasets-duckdb). See also [Access 150k+ datasets from Hugging Face with DuckDB](https://duckdb.org/2024/05/29/access-150k-plus-datasets-from-hugging-face-with-duckdb). Attach directly from Hugging Face: ```sql INSTALL ducklake; LOAD ducklake; ATTACH 'ducklake:hf://datasets/sciexp/fixtures/lakes/frozen/space.db' AS space; SHOW TABLES FROM space.main; ``` Or from a local clone: ```sql ATTACH 'ducklake:lakes/frozen/space.db' AS space; ```
## Attribution The space missions dataset originates from: - [marhar/frozen](https://github.com/marhar/frozen) - Frozen DuckLake Demo - [marhar/duckdb_tools](https://github.com/marhar/duckdb_tools) - DuckDB tools including frozen-ducklake workflow scripts ## Repository layout
Directory structure ``` lakes/frozen/ DuckLake databases space.db Metadata database space/ Parquet data files queries/ SQL scripts ```
## Contributing
Authentication and push workflow Push access requires Hugging Face authentication: ```sh hf auth login --token "${HF_TOKEN}" --add-to-git-credential ``` Push changes: ```sh git lfs push --all origin git push ```