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

Follow up to #2157. That PR repeated variable resolution. This test
still does not resolve fully but would resolve with 3 passes. This is
slightly different from complex-transitive-deeper - this test does not
show any errors, the issue is purely not enough passes.
This commit is contained in:
Denis Bilenko 2025-01-16 13:14:00 +01:00 committed by GitHub
parent 98244606b3
commit bc1610f6e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 26 additions and 0 deletions

View File

@ -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}

View File

@ -0,0 +1,3 @@
{
"spark.databricks.sql.initial.catalog.name": "${var.catalog}"
}

View File

@ -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'