Skip to main content

Deploy Source Schema

POST 

/api/v1/sources/:name/deploy

Plan (dry_run=true) or deploy a source version's schema to ClickHouse.

Runs the v2 YAML -> DDL pipeline. In plan mode the CREATE TABLE (+ any standard views) and validation errors are returned for review WITHOUT touching ClickHouse. In deploy mode the DDL is applied: an absent table is created, and an existing one gains the columns it lacks and moves to the version's TTL, so a re-deploy changes only what differs. The engine and the type of an existing column are left as created. A schema that failed validation is never deployed. A source on the bus transport whose Kafka topics the broker did not create is not marked deployed either, and the call answers 502 naming each topic.

In production with DFE_ENGINE_GITOPS_MODE=team the deploy is held: the record goes to review with review_required, and no table, topic, app or HyperDX source changes. The engine deploys the version within gitops.converge_interval_seconds of the review merging, and a review closed unmerged changes nothing.

Request​

Responses​

Successful Response