Skip to content

Commit 0cbf982

Browse files
committed
acc: record that a target can add an explicit null that keeps the default off
1 parent a291ae9 commit 0cbf982

5 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
bundle:
2+
name: test-bundle
3+
4+
resources:
5+
jobs:
6+
j:
7+
name: j
8+
tasks:
9+
- task_key: t
10+
notebook_task:
11+
notebook_path: ./nb.py
12+
13+
targets:
14+
dev:
15+
resources:
16+
jobs:
17+
j:
18+
queue: null
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Databricks notebook source
2+
print(1)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Cloud = false
2+
EnvMatrix.DMS = ["", "true"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
>>> [CLI] bundle validate -t dev -o json
3+
Warning: required field "enabled" is not set
4+
at resources.jobs.j.queue
5+
in databricks.yml:18:18
6+
7+
null
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# A target can add an explicit null that is kept, like a null in the base file: the default queue is not applied.
2+
trace $CLI bundle validate -t dev -o json | jq '.resources.jobs.j.queue'

0 commit comments

Comments
 (0)