
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Preview the finished lakehouse and see the dataset verification result that the capstone works towards. Meet the fictional delivery service and the course workflow.
Follow the problems that arise when a directory of Parquet files has to behave like a table. Learn why consistent metadata matters when readers, writers and schemas change.
Trace a read from the catalog to table metadata, a snapshot, its manifest list and manifests, and finally the relevant Parquet data files. See where Iceberg records schema and partition information.
Create a Python virtual environment, install the pinned dependencies and run the smoke-test notebook. Use the checks to verify catalog access, a real table write and a DuckDB read.
Open a SQLite-backed catalog, locate the warehouse and register the shop namespace. Run the notebook to see how catalog entries and warehouse paths work together.
Define stable field IDs, choose types and decide which columns are required. Create orders, customers and deliveries with course schemas and confirm that the catalog lists them.
Generate Arrow batches, append orders and deliveries, and inspect the resulting warehouse files and snapshot metadata. Resolve a schema mismatch before a write.
Compare scans with row filters and column projections, and use file planning to see where pruning helps. Try the week-two North orders challenge, then compare your result with the walkthrough.
Register the output of PyIceberg scans in DuckDB and join orders to deliveries. Calculate the baseline late-delivery rate and see how the connection controls table and view visibility.
Define lateness once, then analyse it by region, slot hour, day and distance. Build a weighted three-day rolling rate and try the distance-band query before the worked answer.
Decide what to filter in PyIceberg and what to calculate in DuckDB. Learn what changes stay in the analytics session and what needs a commit through the Iceberg write path.
Compare whole-table and filtered overwrites, remove a temporary batch and follow a customer deletion across related tables. Inspect commit summaries to check what each operation did.
Combine incoming deliveries and corrections, match records by order ID, and check the effect of replaying a batch. Apply the second correction batch yourself, then compare the commits with the walkthrough.
Add courier type for newer deliveries and read older rows with the evolved schema. Rename and widen a field while tracking its stable ID.
Add day partitioning and inspect files written under the old and new partition specifications. Filter by the original timestamp and see which files Iceberg plans across both layouts.
Commit an append and a table property together. Trigger a failure before commit and inspect the visible table state and the unreferenced file left behind.
Query snapshots, files, history and partitions as data. Write a query for the average file size by partition and compare it with the worked solution.
Inspect how an accidental duplicate append changes the current snapshot. Roll back to a known-good snapshot and distinguish the active state from the snapshots still in history.
Read two explicit snapshots and compare corrected rows without changing the current table. Join to each order's slot end to find deliveries whose late label flipped.
Tag a report snapshot, create an audit branch and test a correction on that branch. Move the current reference to publish the validated result.
Expire an unprotected snapshot by ID and clean up by age. Check that the tag and current branch head survive, and distinguish metadata expiry from physical orphan-file cleanup.
Define the prediction point, the late label and the completed-delivery population. Identify what an auditor needs to reproduce the data, code, split and environment.
Run the feature query against one snapshot per source table, assign a deterministic split and tag the sources. Record the hashes, versions and fingerprint in a dataset manifest.
Append week-five records and apply corrections. Compare the latest dataset with v1, count shared labels that changed and verify that shared orders kept their train or test assignment.
Rebuild v1 from its manifest in a fresh process. Verify the fingerprint and see how an expired untagged snapshot, edited feature code and changed split settings are detected.
Train the same fixed logistic regression on v1 and on the latest dataset. Rebuild v1 independently, retrain and compare the metrics to the original.
Explore REST catalogs, object storage and the engines that can share Iceberg tables. Connect access controls, audit and maintenance to the practices introduced in the local project.
Review the core Iceberg and reproducibility ideas, then choose a dataset of your own to practise with. Use the course resources to revisit the setup, metadata and verification steps.
Build an Apache Iceberg lakehouse on your laptop, analyse it with DuckDB, and reproduce the exact training data a model used before its source tables changed.
Imagine a grocery delivery company trains a model to predict late deliveries. A few weeks later, new orders have arrived and corrections have changed some of the original records. When someone asks how the model was trained, rerunning the same SQL against today’s tables can give a different answer. In this course, you’ll build a workflow that lets you return to the versions you used and verify what you get back.
Build and query the lakehouse
Use PyIceberg and PyArrow to create and populate tables for orders, customers and deliveries. See which files Iceberg reads when you filter or select columns, then use DuckDB to join the data and calculate delivery performance. Work through overwrites, deletes, upserts and schema and partition changes. Use metadata tables, time travel, tags and branches to inspect changes and recover an earlier table state.
Rebuild a real training dataset
In the capstone, you’ll record the source snapshots, feature SQL and train–test split settings in a dataset manifest. After the source data changes, you’ll rebuild the original dataset in a fresh Python process, verify its fingerprint and reproduce the model’s reported metrics under the pinned setup. You’ll also see which parts of the workflow carry over to a shared production environment.
I’m Hassan Raza Bukhari, a data scientist and machine learning engineer. I’ve built AI and data systems in areas including healthcare and social impact measurement. I designed this course around a single case because it’s easier to understand why a table version matters when you can see how a change affects a report or a model.
If you work with data and know basic Python and SQL, you can follow the project locally in Jupyter with the supplied code and generated dataset. Use the quizzes, browser coding exercises and notebook assignments to practise each part. By the end, you’ll have a working Iceberg project and a reproducibility checklist you can apply to your own data.