Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions acceptance/bundle/resources/pipelines/photon-false/script

This file was deleted.

7 changes: 0 additions & 7 deletions acceptance/bundle/resources/pipelines/photon-false/test.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
bundle:
name: photon-false
name: zero-value-fields

resources:
pipelines:
my:
name: test-pipeline
photon: false
serverless: false
continuous: false
development: false
libraries:
- file:
path: "./foo.py"
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@
"path": "/api/2.0/pipelines",
"body": {
"channel": "CURRENT",
"continuous": false,
"deployment": {
"kind": "BUNDLE",
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/state/metadata.json"
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/state/metadata.json"
},
"development": false,
"edition": "ADVANCED",
"libraries": [
{
"file": {
"path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/files/foo.py"
"path": "/Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/files/foo.py"
}
}
],
"name": "test-pipeline",
"photon": false
"photon": false,
"serverless": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"channel": "CURRENT",
"deployment": {
"kind": "BUNDLE",
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/state/metadata.json"
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/state/metadata.json"
},
"edition": "ADVANCED",
"libraries": [
{
"file": {
"path": "/Workspace/Users/[USERNAME]/.bundle/photon-false/default/files/foo.py"
"path": "/Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/files/foo.py"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"my": {
"channel": "CURRENT",
"continuous": false,
"deployment": {
"kind": "BUNDLE",
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/state/metadata.json"
},
"development": false,
"edition": "ADVANCED",
"library": [
{
"file": {
"path": "/Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/files/foo.py"
}
}
],
"name": "test-pipeline",
"photon": false,
"serverless": false
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

>>> [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/photon-false/default/files...
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/files...
Deploying resources...
Updating deployment state...
Deployment complete!
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
trace $CLI bundle deploy
print_requests.py //api/2.0/pipelines > out.requests.$DATABRICKS_BUNDLE_ENGINE.txt 2>&1

if [ -f .databricks/bundle/default/terraform/bundle.tf.json ]; then
jq .resource.databricks_pipeline .databricks/bundle/default/terraform/bundle.tf.json > out.tf.$DATABRICKS_BUNDLE_ENGINE.json
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Badness = "zero-value bool fields (photon, serverless, continuous, development) are not sent in the terraform deployment"
Local = true
Cloud = false
RecordRequests = true

[EnvMatrix]
DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"]
Loading