Schedule icon
Webhook icon
If icon
Get icon
Parallel icon
Download icon
Queries icon
Set icon
Log icon
Fail icon

Reconcile a Eurostat HICP inflation mart with the official annual rate

Load Eurostat HICP, derive inflation in DuckDB, and fail the run if it disagrees with the official annual rate.

Categories
Data

Eurostat publishes HICP as an index (prc_hicp_midx, I15, 2015=100) and an official annual rate (prc_hicp_manr, RCH_A). This flow loads both from the public SDMX API, derives inflation in DuckDB, and fails if they disagree.

How it works

  1. Schedule monthly_hicp_release at 06:15 Europe/Brussels on the 17th and Webhook release_webhook start the tasks.
  2. If inputs_ok allows geos (DE, EU27_2020), a COICOP (CP00), and YYYY-MM. Otherwise Fail fail_inputs runs and no request is sent.
  3. KV Get previous_period reads the last accepted month for this COICOP.
  4. Parallel pull_eurostat downloads both SDMX-CSV slices (detail=dataonly). Accept must be the SDMX CSV type or the API returns 406. Geos are joined with + in the path key.
  5. DuckDB Queries build_mart computes 1-month and 12-month changes to 1 decimal, joins the official rate, and returns a quality row plus three files.
  6. quality_gate passes on full coverage, no nulls, 13 or more months, one latest month, a reconciled rate per geo, and a gap within yoy_tolerance_pp (default 0.1). A pass stores the month.

What you get

  • Parquet hicp_index: geo, month, index, source stamp.
  • {{ outputs.build_mart.outputFiles.inflation_rates }}: derived rates, official rate, and gap.
  • CSV reconciliation: overlapping months by absolute gap.
  • A failed run when the rates disagree, and KV eurostat_hicp_latest_.

Who it's for

  • Macro and analytics engineers who keep a consumer-price mart and check it against the official rate.

Why orchestrate this with Kestra

  • Parallel fetch, in-process DuckDB, retries, a KV marker, and a failed execution instead of a green log.

Prerequisites

  • Kestra 2.0+ with DuckDB Queries and HTTPS to ec.europa.eu. No API key. start_period must cover 13 months (default 2024-01).

Secrets

  • EUROSTAT_HICP_WEBHOOK_KEY: webhook only. Execute and the schedule do not read it.

Quick start

  1. Import the flow. Create the webhook secret only to call the webhook.
  2. Execute defaults DE;FR;IT;ES;NL, CP00, 2024-01, tolerance 0.1.
  3. Read the pass log and Outputs, then run again to see the stored month.

How to extend

  • Add EA, EU27_2020, or COICOP CP01. Upload the Parquet files, or call the webhook from a release calendar.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.