Chess Lakehouse
Is it a dataset, a data warehouse or a data lake? It's a lakehouse ๐ ๐๏ธ๐ถ
Versions
- Lichess's openings dataset: 2026-01-05
- Lumbras Gigabase: 2026-03-03
- duckdb chess extension: 0.6.0
Process
Pipeline process: https://github.com/dotneB/chess_lakehouse
- Uses DVC
- Data sources:
- Lumbras Gigabase PGNs
- Use DuckDB chess extension (source) to parse PGN into duckdb
- Export to Parquet to a Schema similar to Lichess games datasets.
Dataset Enrichment
- Eco, Opening:
- Uses Lichess's openings dataset to resolve Eco and Opening fields.
- UTCDate:
- Uses the first, most complete date value that exists, with the following fallback chain
UTCDate->Date->EventDate - Some dates are incomplete/placeholder. Unknown month/day ?? become 01:
2000.??.??->2000-01-01,2000.06.??->2000-06-01 - Out-of-range day is clamped to month end when year/month are valid:
2015.11.31->2015-11-30,1997.02.29->1997-02-28
- Uses the first, most complete date value that exists, with the following fallback chain
- TimeControl:
- A best effort lenient parsing:
40/5400+30:1800+30 - Lenient shorthands:
3+2->180+2,75|30->4500+30,15 + 10->900+10 - Apostrophe forms:
10'+5''->600+5,3' + 2''/mv from move 1->180+2 - Free text:
3 mins + 2 seconds increment->180+2,90 minutes for 40 moves + 30 minutes for the rest + 30 seconds per move from move one->40/5400+30:1800+30
- A best effort lenient parsing:
Dataset Structure
This dataset is hive-partitioned into multiple parquet files on three keys: DataSource, year and month:
โโ data
โ โโ DataSource=LumbrasGigabase_Online
โ โโ year=2015
โ โโ month=01
โ โโ data_0.parquet
Dataset Fields
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโ
โ column_name โ column_type โ
โ varchar โ varchar โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ Event โ VARCHAR โ
โ Site โ VARCHAR โ
โ White โ VARCHAR โ
โ Black โ VARCHAR โ
โ Result โ VARCHAR โ
โ WhiteTitle โ VARCHAR โ
โ BlackTitle โ VARCHAR โ
โ WhiteElo โ UINTEGER โ
โ BlackElo โ UINTEGER โ
โ UTCDate โ DATE โ
โ UTCTime โ TIME WITH TIME ZONE โ
โ ECO โ VARCHAR โ
โ Opening โ VARCHAR โ
โ Termination โ VARCHAR โ
โ TimeControl โ VARCHAR โ
โ Source โ VARCHAR โ
โ movetext โ VARCHAR โ
โ DataSource โ VARCHAR โ
โ month โ VARCHAR โ
โ year โ BIGINT โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโค
โ 20 columns โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Credits
- Lumbras Gigabase: For collecting and curating a high quality collection of chess games PGNs