Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for complex variable resolution with 3 levels #2163

Merged
merged 1 commit into from
Jan 16, 2025
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
bundle:
name: complex-transitive

variables:
catalog:
default: hive_metastore
spark_conf_1:
default:
"spark.databricks.sql.initial.catalog.name": ${var.catalog}
spark_conf:
default: ${var.spark_conf_1}
etl_cluster_config:
type: complex
default:
spark_version: 14.3.x-scala2.12
runtime_engine: PHOTON
spark_conf: ${var.spark_conf}

resources:
clusters:
my_cluster: ${var.etl_cluster_config}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"spark.databricks.sql.initial.catalog.name": "${var.catalog}"
}
2 changes: 2 additions & 0 deletions acceptance/bundle/variables/complex-transitive-deep/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Currently, this incorrectly outputs variable reference instead of resolved value
$CLI bundle validate -o json | jq '.resources.clusters.my_cluster.spark_conf'
Loading