[DAB] Schema validation rejects `isolation_mode` in `resources.catalogs` definitions
维护者通常 1 天内回复
@andrewnester 已经在做这个了。
开始于 2026年5月6日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
When defining Unity Catalog resources in a databricks.yml bundle, the isolation_mode field is rejected by the CLI schema validator, even though it is a valid and documented Unity Catalog API attribute (OPEN / ISOLATED).
Steps to reproduce
Add a catalog resource with isolation_mode to your bundle:
resources:
catalogs:
my_catalog:
name: "dev_application_X"
storage_root: "abfss://[email protected]"
isolation_mode: ISOLATED
comment: "Catalog for X application data"
grants:
- principal: "my-group"
privileges:
- USE_CATALOG
- USE_SCHEMA
- SELECT
Run:
databricks bundle validate -t ENV
Expected behavior
isolation_mode: ISOLATED (or OPEN) should be accepted and applied during bundle deploy, binding the catalog to the target workspace when set to ISOLATED.
Actual behavior
The CLI rejects the field with a schema validation error, preventing the bundle from deploying catalogs with workspace-scoped isolation.
Motivation / Use case
Multi-environment bundles (dev/pre/prod) need to deploy catalogs with different isolation modes per target:
ISOLATEDin dev/pre — catalog is workspace-bound, preventing cross-workspace access during development.OPENin prod — catalog is accessible across workspaces.
Without this support, isolation_mode must be set manually via the Unity Catalog UI or REST API after each deployment, breaking the IaC model that DAB is designed to provide.
CLI version
Databricks CLI v0.299.0
References
- Unity Catalog REST API:
POST /api/2.1/unity-catalog/catalogs— fieldisolation_mode - Unity Catalog isolation mode docs
- 主要语言
- Go
- 星标
- 404
- 派生
- 246
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 268
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
databricks/cli 的其他 Issue
-
Apps commands only accept relative path to app.yml可能已有人在做 @yuri-rod 于 6 天前认领。 未关闭CLI
难度 2/5 1-3 小时 新手友好度 82/100
databricks/cli#6910 ·
维护者通常 1 天内回复
-
DABs
难度 2/5 1-3 小时 新手友好度 68/100
databricks/cli#6670 ·
维护者通常 1 天内回复
-
DABs
难度 5/5 一周以上 新手友好度 18/100
databricks/cli#7002 ·
维护者通常 1 天内回复
-
DABs
难度 4/5 3-5 天 新手友好度 35/100
databricks/cli#6986 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
databricks/cli#6978 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 2/5 1-3 小时 新手友好度 76/100
prime-radiant-inc/evener#4329 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
openwatersio/aiscast#277 ·
维护者通常 1 天内回复