Build a data processing workflow you can verify
The outcome is repeatable processing with verified results and a clear way to present them to users. Start with a small reference dataset and define the result. Add a server database, orchestrator, and BI as requirements demand; a one-off local analysis does not need the whole kit.
Steps
Describe the data and test SQL on an example
Choose DuckDB for local files and tables or ClickHouse for server-side event analytics. Record the schema, keys, time zones, and row inclusion rules. Compare a reference query with a small example you can recalculate by hand.
Make loading repeatable
Separate data retrieval, validation, and writing. In the chosen engine, test duplicates, an empty dataset, schema changes, and rerunning one range. Retrying after an error should preserve a consistent result rather than duplicate records.
Add schedules and dependencies As needed
If manual execution or simple cron is no longer enough, choose Airflow or Prefect. Configure dependencies, retries, and recovery after failure. Do not introduce two orchestrators for one pipeline; one-off analysis can skip this stage.
Present the result to users As needed
If you need a dashboard, choose Metabase or Apache Superset and check the driver for your storage engine. Connect restricted access, compare the chart with reference SQL, and show the data period and date. A local result can use a verifiable query without a separate BI server.
Detect a missed run As needed
For a periodic pipeline, connect Healthchecks: signal start, completion, or error according to your chosen setup. Reproduce a missed or delayed run and check the notification. A heartbeat confirms execution; data quality is checked separately.
Verify results and recovery
Repeat processing of the reference dataset, compare numbers, and check behavior after a partial failure. For server storage, test backup and restoration. If BI is used, ensure users see only authorized data and the current period.
Conditions and limitations
- An open source license does not include a managed service, enterprise features, or infrastructure.
- A BI connection to DuckDB or another engine depends on the specific driver and version; compatibility must be confirmed.
- A heartbeat does not check result correctness, source freshness, or the absence of duplicates.
- Metabase has an open core with separate terms for commercial parts; check the license and edition before use.
- Periodic server tasks need maintenance, access controls, and a recovery procedure.
How to check the result
- The schema, key, time zones, and metric definitions are recorded.
- The reference result is confirmed by an independent recalculation of a small dataset.
- Repeating processing neither creates duplicates nor skips unfinished data.
- The driver and restricted BI access are checked if BI is connected.
- A missed task triggers the expected signal, and data quality is checked in a separate step.