Paul Mora
01/06/2025, 7:26 AM"prm_customer_base":
table_name: primary_${_environment}.prm_customer_base
<<: *_conn
Now I would like the make the environment specific to the --env
that I am running. So, I created a file under conf/dev/catalog_dev.yml
which contains
_environment: dev
Though the interpolation does not work, and I get the error that the interpolation key is not found.
One workaround that I found was the creation of conf/dev/globals.yml
(+ removing the underscore then ofc). That seems to work, though I am not sure how to feel having a globals.yml
file for each environment, since I was thinking having multiple globals is defeating the point.
Any comment on that?Hall
01/06/2025, 7:26 AMPaul Mora
01/06/2025, 7:33 AMPaul Weiss
01/06/2025, 9:39 AMPaul Mora
01/06/2025, 9:40 AMPaul Mora
01/06/2025, 3:51 PMconf/dev/globals.yml
environment: dev
and in conf/base/globals.yml
test_size: 0.8
Then by using --env dev
I am losing the test_size
parameter, which is quite a shame..Paul Mora
01/06/2025, 3:54 PMglobals
is not the only way to achieve what we are trying to do: https://docs.kedro.org/en/stable/configuration/advanced_configuration.htmlPaul Mora
01/06/2025, 5:39 PMglobals
thing and went with runtime_params
which seems to make more sense for environment introduced path changesNok Lam Chan
01/07/2025, 9:30 AMPaul Mora
01/07/2025, 9:48 AM--env=dev
for example, then the globals of base it not used anymore.
In the end I used of runtime-params, which seems like the more straight forward approach 🙂Nok Lam Chan
01/07/2025, 11:08 AM${_environment}
spill into a newline I thought it s a key.
I think using runtime_params is a good approach here. Though I don't understand why it gives you an interpolation error. It should be a valid config.
Though the interpolation does not work, and I get the error that the interpolation key is not found.
Paul Mora
01/08/2025, 6:43 AM