[BUG] Passing runtime nested params to kedro run --params
overwrites params from config files in latest release
#2357
Labels
Issue: Bug Report 🐞
Bug that needs to be fixed
Hello team - nice to be back in these discussions :)
Description
There was a regression in the latest release (0.18.5), which introduced
OmegaConf
for parsing parameters provided to thekedro run --params
.More specifically, in previous versions
kedro run --params foo.bar=a
was properly merged with an existing parameter
{"foo": {"baz": 1}}
.Now,
kedro.framework.cli.hooks.utils._split_params
returns anomegaconf.DictConfig
object (rather than a plain dictionary), and the second part of the if clause here returns false:Which means that after merging we get
instead of the expected
I could open a PR to fix but it ll take way longer that letting you fix it :)
In the meantime I 've got a local workaround by subclassing
KedroContext
and casting params to a dict!The text was updated successfully, but these errors were encountered: