mirror of https://github.com/databricks/cli.git
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) <lennart.kats@databricks.com>
This commit is contained in:
parent
3a3076d9ea
commit
6ae353d84b
|
@ -48,7 +48,7 @@
|
||||||
- catalog: main
|
- catalog: main
|
||||||
+ ## Specify the 'catalog' field to configure this pipeline to make use of Unity Catalog:
|
+ ## Specify the 'catalog' field to configure this pipeline to make use of Unity Catalog:
|
||||||
+ # catalog: catalog_name
|
+ # catalog: catalog_name
|
||||||
target: my_default_python_${bundle.target}
|
schema: my_default_python_${bundle.target}
|
||||||
- serverless: true
|
- serverless: true
|
||||||
libraries:
|
libraries:
|
||||||
- notebook:
|
- notebook:
|
||||||
|
|
|
@ -5,7 +5,7 @@ resources:
|
||||||
name: my_default_python_pipeline
|
name: my_default_python_pipeline
|
||||||
## Specify the 'catalog' field to configure this pipeline to make use of Unity Catalog:
|
## Specify the 'catalog' field to configure this pipeline to make use of Unity Catalog:
|
||||||
# catalog: catalog_name
|
# catalog: catalog_name
|
||||||
target: my_default_python_${bundle.target}
|
schema: my_default_python_${bundle.target}
|
||||||
libraries:
|
libraries:
|
||||||
- notebook:
|
- notebook:
|
||||||
path: ../src/dlt_pipeline.ipynb
|
path: ../src/dlt_pipeline.ipynb
|
||||||
|
|
|
@ -18,5 +18,5 @@ See also the documentation at https://docs.databricks.com/dev-tools/bundles/inde
|
||||||
- ## Catalog is required for serverless compute
|
- ## Catalog is required for serverless compute
|
||||||
- catalog: main
|
- catalog: main
|
||||||
+ catalog: customcatalog
|
+ catalog: customcatalog
|
||||||
target: my_default_python_${bundle.target}
|
schema: my_default_python_${bundle.target}
|
||||||
serverless: true
|
serverless: true
|
||||||
|
|
|
@ -5,7 +5,7 @@ resources:
|
||||||
name: my_default_python_pipeline
|
name: my_default_python_pipeline
|
||||||
## Catalog is required for serverless compute
|
## Catalog is required for serverless compute
|
||||||
catalog: main
|
catalog: main
|
||||||
target: my_default_python_${bundle.target}
|
schema: my_default_python_${bundle.target}
|
||||||
serverless: true
|
serverless: true
|
||||||
libraries:
|
libraries:
|
||||||
- notebook:
|
- notebook:
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "[dev [USERNAME]] project_name_$UNIQUE_PRJ_pipeline",
|
"name": "[dev [USERNAME]] project_name_$UNIQUE_PRJ_pipeline",
|
||||||
"target": "project_name_$UNIQUE_PRJ_dev",
|
"schema": "project_name_$UNIQUE_PRJ_dev",
|
||||||
"url": "[DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]"
|
"url": "[DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ resources:
|
||||||
{{- else}}
|
{{- else}}
|
||||||
catalog: {{default_catalog}}
|
catalog: {{default_catalog}}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
target: {{.project_name}}_${bundle.target}
|
schema: {{.project_name}}_${bundle.target}
|
||||||
{{- if $with_serverless }}
|
{{- if $with_serverless }}
|
||||||
serverless: true
|
serverless: true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
Loading…
Reference in New Issue