databricks-cli/bundle/tests/relative_path_translation/databricks.yml

34 lines
619 B
YAML
Raw Normal View History

bundle:
name: relative_path_translation
include:
- resources/*.yml
variables:
file_path:
# This path is expected to be resolved relative to where it is used.
default: ../src/file1.py
workspace:
file_path: /remote
targets:
default:
default: true
override:
variables:
file_path: ./src/file2.py
resources:
jobs:
job:
tasks:
- task_key: local
spark_python_task:
python_file: ./src/file2.py
- task_key: variable_reference
spark_python_task:
python_file: ${var.file_path}