docs(duckdb): add public dataset tutorials - #5512
Merged
drrtuy merged 2 commits intoAug 7, 2026
Merged
Conversation
mariadb-AlekseiBukhalov
force-pushed
the
docs/duckdb-public-datasets
branch
from
August 7, 2026 17:18
bf1a896 to
826eacf
Compare
mariadb-AlekseiBukhalov
marked this pull request as ready for review
August 7, 2026 17:19
Add two step-by-step tutorials: - NYC Taxi Trips: load TLC Parquet via run_in_duckdb() + read_parquet(), keep the zone lookup in InnoDB, then join the two engines in a plain SELECT. Follows the structure of the ClickHouse taxi tutorial. - OWID CO2 Emissions: load a commit-pinned CSV revision, run aggregations and a LAG() window function. Both tutorials point at security-model.md before telling the reader to enable duckdb_allow_run_in_duckdb, and both note that ordinary INSERT/UPDATE/DELETE also work on ENGINE=DuckDB tables so that run_in_duckdb() does not look like the only write path. Also documents TIMESTAMPDIFF in mariadb-duckdb-incompatibilities.md and adds a tutorials section to the README. Every SQL block and every expected output was extracted from the markdown, executed, and compared cell by cell on MariaDB 11.4.13 built from this branch; both data sets are pinned so results stay reproducible.
mariadb-AlekseiBukhalov
force-pushed
the
docs/duckdb-public-datasets
branch
from
August 7, 2026 17:36
826eacf to
5f75f06
Compare
drrtuy
self-requested a review
August 7, 2026 20:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two step-by-step tutorials for the DuckDB storage engine, plus the supporting doc updates:
run_in_duckdb()+read_parquet(), keep the taxi zone lookup inENGINE=InnoDB, then join DuckDB and InnoDB in a plainSELECT. Follows the structure of the ClickHouse taxi tutorial so the two are comparable.LAG()window function.docs/mariadb-duckdb-incompatibilities.md— documentsTIMESTAMPDIFF()under a new "Not translated by the pushdown layer" heading.README.md— new "Tutorials" section linking both.Docs only: 4 files, 602 insertions, 0 deletions, no code touched.
Testing
The tutorials are treated as a spec: every SQL block was extracted programmatically from the
markdown, executed against a live server, and every expected-output block was compared cell by
cell with the actual result.
Environment:
11.4.13-MariaDB, built from this branch (RelWithDebInfo)11.4@90bea36bfadha_duckdb.so,SHOW ENGINES→DUCKDB / YES, maturity gammav1.5.2duckdb_allow_run_in_duckdb=ON,local_infile=ONData sets (verified by sha256 against the URLs in the tutorials):
owid-co2-data.csv7f78e2b218ce4bb8c538bbec04fdc9a7982e8d40bff972e650df603899edd5f6yellow_tripdata_2024-01.parquetc4d59da7bbc8abaeeeb1727947ee93d9891a71acb42854bd80db1571b2030510taxi_zone_lookup.csv1a99e105092230f8620f301edcca7f80d3080642ff404d28ed957d3fa222c8edResult — 13 output blocks compared, all matched:
Also checked:
duckdb_log_options='DUCKDB_QUERY'the error log showsDuckDB: cross-engine pushdown with 1 external table(s)and the pushed-down statement, as thetutorial claims.
LOAD DATA LOCAL INFILEinto InnoDB, andinformation_schema.TABLESreportingtaxi_zones / InnoDBandtrips / DUCKDB.January 2024, and
AVG(tip_amount)is 3.34 with and without the month filter.DROP DATABASEcleanup for both tutorials.