bundle validate does not catch missing trigger.table_update.condition with multiple tables
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Add the job above to a bundle.
- Run
databricks bundle validate. It reportsValidation OK!. - 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.
- Ngôn ngữ chính
- Go
- Star
- 409
- Fork
- 253
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 212
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của databricks/cli
-
Apps commands only accept relative path to app.ymlCó thể đã có người làm @yuri-rod đã nhận 16 ngày trước. Đang mởCLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
databricks/cli#6910 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
databricks/cli#6670 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
databricks/cli#7100 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs Enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
databricks/cli#7099 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
databricks/cli#7032 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của databricks/cli
Issue tương tự
-
[Bug]: Deleting an MCP proxy leaves its API keys in the gateway's memory and in the policy engineĐang mởAspect/API Aspect/Other Severity/Minor Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
wso2/api-platform#3852 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Rafaeldelinares/gentle-mesh#125 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Gentleman-Programming/gentle-ai#5643 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
FootprintAI/Containarium#2869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
kubevirt/kubevirt#19559 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày