The Zen of the Bronze Layer Ingestion of Data with Unstable Schema
summary
Claims a practical ingestion pattern that uses the Python csv module, unpivots wide CSVs into long rows (unpivot to long format), stores the original files, then standardizes by lookup rather than bespoke code (mapping table joins). It handles many vendor quirks, preserves original headers (preserve original headers and typos), and reduces brittle per-vendor transformations. Works well for small scientific batches (≈100 rows), ships a demo repo with randomized test files, and cautions that EAV is not a universal solution.
AI-written summary · about
chapters (19)
- 0:00Introduction to Bronze Layer
- 1:27Medallion Architecture Overview
- 3:11Simple CSV Ingestion
- 4:34Handling New Columns
- 6:19Dealing with Typos and Errors
- 7:44Metadata Rows and Empty Columns
- 9:08Invalid Database Characters
- 10:31Is This Still Bronze Data?
- 11:59Zen Approach to Bronze Layer
- 13:01Parsing CSV with Python
- 14:22Unpivoting Data to Long Format
- 15:51Mapping to Standardized Names
- 17:38Simplified Transformation Logic
- 19:02Loading Data to Bronze
- 20:03Silver Layer Simplification
- 21:51When to Use EAV Tables
- 22:54Benefits of This Approach
- 24:20Key Takeaways
- 25:43Q&A Session
