Repository navigation
Conversation
… 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
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 If you're an external contributor, no action is needed; a maintainer will review your pull request. |
Contributor
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add a fast validator that reports a job
trigger.table_updateortriggers[*].table_updatethat lists more than one table without settingcondition. The diagnostic points at the trigger's path and YAML location, and tells the user to setANY_UPDATEDorALL_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 validatereported "Validation OK!", so the problem only surfaced duringbundle deploy, after the files were uploaded.conditionis optional for a single table, so only the multi-table case is reported.Tests
TestJobTableUpdateTriggerConditioncovers no trigger, a single table, both condition values, and a missing condition undertriggerand undertriggers.acceptance/bundle/validate/job_table_update_trigger_conditionreported "Validation OK!" before this change. It now fails with both diagnostics.