Skip to content

Report table update triggers with multiple tables and no condition in bundle validate - #7877

Open
1yangsh wants to merge 2 commits into
databricks:mainfrom
1yangsh:issue-7101
Open

1yangsh wants to merge 2 commits into
databricks:mainfrom
1yangsh:issue-7101

Conversation

@1yangsh

@1yangsh 1yangsh commented Nov 21, 2026

Copy link
Copy Markdown

Changes

Add a fast validator that reports a job trigger.table_update or triggers[*].table_update that lists more than one table without setting condition. The diagnostic points at the trigger's path and YAML location, and tells the user to set ANY_UPDATED or ALL_UPDATED.

Why

Fixes #7101.

The Jobs API rejects such a trigger on create: "Invalid condition: it must be one of ANY_UPDATED, ALL_UPDATED when more than one table is defined". But bundle validate reported "Validation OK!", so the problem only surfaced during bundle deploy, after the files were uploaded. condition is optional for a single table, so only the multi-table case is reported.

Tests

  • Unit test TestJobTableUpdateTriggerCondition covers no trigger, a single table, both condition values, and a missing condition under trigger and under triggers.
  • Acceptance test acceptance/bundle/validate/job_table_update_trigger_condition reported "Validation OK!" before this change. It now fails with both diagnostics.

… bundle validate

The Jobs API rejects a table update trigger that lists more than one table
without a condition. bundle validate accepted such a job, so the error only
surfaced during deploy, after files were uploaded. Add a fast validator that
reports it for both trigger and triggers[*].

Fixes databricks#7101
@1yangsh
1yangsh requested review from a team as code owners November 21, 2026 16:44
@github-actions github-actions Bot added the DABs DABs related issues label Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution! This pull request was opened from a fork.

If you're a member of the Databricks organization, please request access to the cli-contrib team and open your pull request from a branch in this repository instead of a fork — fork PRs don't run integration tests automatically and have reduced CI access.

If you're an external contributor, no action is needed; a maintainer will review your pull request.

@github-actions

Copy link
Copy Markdown
Contributor

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 7877
  • Commit SHA: 6ae464108aff9867a737c5fce712cd6a75711d52

Checks will be approved automatically on success.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bundle validate does not catch missing trigger.table_update.condition with multiple tables

1 participant