Abhishek Bhatia
11/05/2024, 12:17 PMkedro run --pipeline <my_pipeline> --params "<my_list_of_global_params>"
Dmitry Sorokin
11/05/2024, 12:43 PMAbhishek Bhatia
11/05/2024, 12:44 PMDmitry Sorokin
11/05/2024, 12:46 PMAbhishek Bhatia
11/05/2024, 12:49 PMglobals.yml
but can be configured for your config loader by specifying any arbitrary glob pattern.
"globals_pattern": "**/globals*"
So, as an example, in my case, I put base paths for files which I use in other catalog.yml files.
In globals.yml
# Base path for the filepath defined in the catalog
raw_base_path: data/
raw_base_path_spark: data/
base_path: data/
base_path_spark: data/
In any arbitrary catalog yml file
my_dataset:
<<: *_spark_parquet
filepath: ${base_path_spark}/my_dataset.parquet
Dmitry Sorokin
11/05/2024, 12:53 PMAbhishek Bhatia
11/05/2024, 12:57 PM