mirror of https://github.com/databricks/cli.git
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:
parent
98244606b3
commit
bc1610f6e6
|
@ -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}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"spark.databricks.sql.initial.catalog.name": "${var.catalog}"
|
||||||
|
}
|
|
@ -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…
Reference in New Issue