For example here I extract the schedule parameter as a complex type variable:
variables:
schedule:
description: schedule time
type: complex
default:
quartz_cron_expression: '0 22 17 * * ?'
timezone_id: Asia/Shanghai
pause_status: "UNPAUSED"
And here is how I use in my job definition:
resources:
jobs:
my_workflow_job:
name: โฆโฆ
schedule: ${var.schedule}
When I validate the yaml file via command: `databricks bundle validate -t dev -o json`, it told me:
Error: no value assigned to required variable schedule. Assignment can be done through the "--var" flag or by setting the BUNDLE_VAR_schedule environment variable
I donโt know whatโs wrong with my code, I follow the example in the document https://docs.databricks.com/en/dev-tools/bundles/settings.html#define-a-complex-variable to define the complex type variable