Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#7,101 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@yuri-rod 已经在做这个了。

开始于 2026年10月19日。

  • #7107 来自 @yuri-rod —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

Start at the bundle validation path for job trigger configuration and inspect how table_update.table_names and condition are validated; the issue does not name specific files or tests. Reproduce with the YAML configuration in the issue, then run the relevant bundle validation tests. Done when validation reports that multiple table names require ANY_UPDATED or ALL_UPDATED, while a single table remains valid without a condition.

由索引模型根据 Issue 内容生成。

描述

DABs Enhancement
Describe the issue

databricks bundle validate accepts a job whose trigger.table_update lists more than one table but sets no condition. The Jobs API then rejects that job during databricks bundle deploy, after the files have already been uploaded:

Endpoint: POST https://<workspace>/api/2.2/jobs/create
HTTP Status: 400 Bad Request
API error_code: INVALID_PARAMETER_VALUE
API message: Invalid condition: it must be one of ANY_UPDATED, ALL_UPDATED when more than one table is defined

Error: cannot create resources.jobs.my_job.permissions: dependency failed: resources.jobs.my_job

condition is optional when there is one table and required when there are two or more. validate should report that, since it can be checked without calling the API.

Configuration
resources:
  jobs:
    my_job:
      name: my_job
      trigger:
        pause_status: UNPAUSED
        table_update:
          # condition: ANY_UPDATED   <- deploy only succeeds with this line
          table_names:
            - main.default.table_a
            - main.default.table_b
          wait_after_last_change_seconds: 60
      tasks:
        - task_key: t
          notebook_task:
            notebook_path: /Workspace/Shared/some_notebook
Steps to reproduce the behavior
  1. Add the job above to a bundle.
  2. Run databricks bundle validate. It reports Validation OK!.
  3. Run databricks bundle deploy. Job creation fails with the 400 above.
Expected Behavior

databricks bundle validate fails (or at least warns) that trigger.table_update.condition must be ANY_UPDATED or ALL_UPDATED when table_names has more than one entry.

Actual Behavior

Validation passes, and the problem only shows up during deploy, as an API error after files are uploaded.

OS and CLI version
  • Databricks CLI v1.20.0
  • Linux (WSL2)
  • Azure Databricks workspace
Is this a regression?

Not known.

主要语言
Go
星标
409
派生
253
平均合并
1 天 11 小时
30 天内合并 PR
212

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

databricks/cli 的其他 Issue

查看 databricks/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。