Skip to content

Commit 6ae353d

Browse files
Use schema field for pipeline in builtin template (#2347)
## Changes The `schema` field implies the lifecycle of tables is no longer tied to the lifecycle of the pipeline, as was the case with the `target` field. More information about using the "catalog" and "schema" properties can be found here: https://docs.databricks.com/en/delta-live-tables/target-schema.html ## Tests n/a --------- Co-authored-by: Lennart Kats (databricks) <[email protected]>
1 parent 3a3076d commit 6ae353d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

acceptance/bundle/templates/default-python/classic/out.compare-vs-serverless.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
- catalog: main
4949
+ ## Specify the 'catalog' field to configure this pipeline to make use of Unity Catalog:
5050
+ # catalog: catalog_name
51-
target: my_default_python_${bundle.target}
51+
schema: my_default_python_${bundle.target}
5252
- serverless: true
5353
libraries:
5454
- notebook:

acceptance/bundle/templates/default-python/classic/output/my_default_python/resources/my_default_python.pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resources:
55
name: my_default_python_pipeline
66
## Specify the 'catalog' field to configure this pipeline to make use of Unity Catalog:
77
# catalog: catalog_name
8-
target: my_default_python_${bundle.target}
8+
schema: my_default_python_${bundle.target}
99
libraries:
1010
- notebook:
1111
path: ../src/dlt_pipeline.ipynb

acceptance/bundle/templates/default-python/serverless-customcatalog/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ See also the documentation at https://docs.databricks.com/dev-tools/bundles/inde
1818
- ## Catalog is required for serverless compute
1919
- catalog: main
2020
+ catalog: customcatalog
21-
target: my_default_python_${bundle.target}
21+
schema: my_default_python_${bundle.target}
2222
serverless: true

acceptance/bundle/templates/default-python/serverless/output/my_default_python/resources/my_default_python.pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resources:
55
name: my_default_python_pipeline
66
## Catalog is required for serverless compute
77
catalog: main
8-
target: my_default_python_${bundle.target}
8+
schema: my_default_python_${bundle.target}
99
serverless: true
1010
libraries:
1111
- notebook:

integration/bundle/testdata/default_python/bundle_summary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
}
165165
],
166166
"name": "[dev [USERNAME]] project_name_$UNIQUE_PRJ_pipeline",
167-
"target": "project_name_$UNIQUE_PRJ_dev",
167+
"schema": "project_name_$UNIQUE_PRJ_dev",
168168
"url": "[DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]"
169169
}
170170
}

libs/template/templates/default-python/template/{{.project_name}}/resources/{{.project_name}}.pipeline.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
{{- else}}
1414
catalog: {{default_catalog}}
1515
{{- end}}
16-
target: {{.project_name}}_${bundle.target}
16+
schema: {{.project_name}}_${bundle.target}
1717
{{- if $with_serverless }}
1818
serverless: true
1919
{{- end}}

0 commit comments

Comments
 (0)