This query fails if the workspace does not exist, which should be the behavior for build or test operations but not for teardown ops
- name: workspace_ready
description: wait until the new workspace answers the workspace API as the deploying principal
type: query
file: databricks_workspace/current_user.iql
props: []
exports:
- workspace_principal
fails with:
[2026-09-09T18:12:41Z ERROR stackql_deploy] Fatal error (matched 'dial tcp:'):
Query execution failed: query returns error: Get "https://<unknown>.cloud.databricks.com/api/2.1/unity-catalog/storage-credentials/datapao_lakehouse_dev_storage_credential": dial tcp: lookup <unknown>.cloud.databricks.com: no such host
adding in an additional property would solve this:
- name: workspace_ready
description: wait until the new workspace answers the workspace API as the deploying principal
type: query
file: databricks_workspace/current_user.iql
skip_on_delete: true
props: []
exports:
- workspace_principal
this would export null for workspace_principal
This query fails if the workspace does not exist, which should be the behavior for
buildortestoperations but not forteardownopsfails with:
adding in an additional property would solve this:
this would export
nullforworkspace_principal