databricks-cli/acceptance/bundle/templates/default-sql/output.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

99 lines
2.7 KiB
Plaintext
Raw Normal View History

>>> [CLI] bundle init default-sql --config-file ./input.json --output-dir output
Welcome to the default SQL template for Databricks Asset Bundles!
A workspace was selected based on your current profile. For information about how to change this, see https://docs.databricks.com/dev-tools/cli/profiles.html.
workspace_host: [DATABRICKS_URL]
✨ Your new project has been created in the 'my_default_sql' directory!
Please refer to the README.md file for "getting started" instructions.
See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
>>> [CLI] bundle validate -t dev
Name: my_default_sql
Target: dev
Workspace:
Host: [DATABRICKS_URL]
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/my_default_sql/dev
Validation OK!
>>> [CLI] bundle validate -t prod
Name: my_default_sql
Target: prod
Workspace:
Host: [DATABRICKS_URL]
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/my_default_sql/prod
Validation OK!
2025-02-12 10:40:54 +00:00
=== Testing validate
>>> [CLI] bundle validate -t dev -o json
>>> [CLI] bundle validate -t prod -o json
>>> diff -u ../../out.validate.dev.json ../../out.validate.prod.json
Exit code: 1
2025-02-12 10:40:54 +00:00
=== Testing deploy
>>> [CLI] bundle deploy -t dev
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_sql/dev/files...
Deploying resources...
Updating deployment state...
Deployment complete!
>>> [CLI] bundle deploy -t prod
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_sql/prod/files...
2025-02-10 22:37:25 +00:00
Deploying resources...
Updating deployment state...
Deployment complete!
2025-02-12 10:40:54 +00:00
=== Testing summary, both JSON and regular output
>>> [CLI] bundle summary -t dev
Name: my_default_sql
Target: dev
Workspace:
Host: [DATABRICKS_URL]
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/my_default_sql/dev
Resources:
Jobs:
my_default_sql_sql_job:
Name: [dev [USERNAME]] my_default_sql_sql_job
2025-02-12 11:28:49 +00:00
URL: [DATABRICKS_URL]/jobs/1?o=900800700600
2025-02-12 10:40:54 +00:00
>>> [CLI] bundle summary -t dev -o json
>>> [CLI] bundle summary -t prod -o json
>>> [CLI] bundle summary -t prod
Name: my_default_sql
Target: prod
Workspace:
Host: [DATABRICKS_URL]
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/my_default_sql/prod
Resources:
Jobs:
my_default_sql_sql_job:
Name: my_default_sql_sql_job
2025-02-12 11:28:49 +00:00
URL: [DATABRICKS_URL]/jobs/2?o=900800700600
2025-02-12 10:40:54 +00:00
>>> diff -u ../../out.summary.dev.json ../../out.summary.prod.json
Exit code: 1
2025-02-12 10:40:54 +00:00
=== Testing validate second time, there should be no difference
>>> [CLI] bundle validate -t dev -o json
>>> diff -u ../../out.validate.dev.json ../../out.validate.2nd.dev.json
>>> [CLI] bundle validate -t prod -o json
>>> diff -u ../../out.validate.prod.json ../../out.validate.2nd.prod.json