File size: 2,003 Bytes
11af8fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187f6a7
 
 
11af8fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
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
```

<details>
<summary>Manual DuckDB session</summary>

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;
```

</details>

## 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

<details>
<summary>Directory structure</summary>

```
lakes/frozen/                DuckLake databases
  space.db                   Metadata database
  space/                     Parquet data files
queries/                     SQL scripts
```

</details>

## Contributing

<details>
<summary>Authentication and push workflow</summary>

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
```

</details>