Change the deployed dbt selection¶
Use this guide to make the deployed source job build long_trips and all of its
ancestors while preserving the weather graph.
Prerequisites¶
- Add and locally validate
long_tripswith Add a dbt model. - Keep the local dbt
DBT_*values active. - Export the same development
BUNDLE_VAR_*values used for the existing bundle deployment. - Use the OAuth U2M profile that owns the development copy. The examples use
bricks-demo.
Preview the selector¶
Ask dbt what the combined selector selects before changing the job:
dbt list \
--select "+long_trips +weather_station_summary" \
--profiles-dir dbt_profiles \
--target dev \
--output name
The output should include nyc_taxi_trips_seed, nyc_taxi_trips,
long_trips, both weather models, both seeds, and their selected tests. A
leading + selects ancestors; see
the official node-selection syntax.
Change the job command¶
Open resources/nyc_taxi.job.yml and find the dbt command's selector:
Replace only that selector with:
Review the change:
The diff should contain one selector-line replacement. Keep the existing
--target-path, --quiet, and warning options unchanged; the artifact contract
depends on them.
Validate and deploy the change¶
Resolve and preview the development target:
databricks bundle validate --target dev --profile bricks-demo
databricks bundle plan --target dev --profile bricks-demo
Validation should succeed, and the plan should show an update to the source job without replacing the observability storage.
Deploy the update:
The command should finish with Deployment complete!.
Verify the deployed selector¶
Run the source job and then the paused development collector:
databricks bundle run nyc_taxi_dbt_job \
--target dev \
--profile bricks-demo
databricks bundle run dbt_observability_collector_job \
--target dev \
--profile bricks-demo
Both runs should succeed. The new source run's dbt artifacts now contain
long_trips, while the collector continues to use the same attempt-keyed
staging and evidence contract.