Fix comma splitting for node re-run suggestion #2012
Labels
Component: CLI
Issue/PR that addresses the CLI for Kedro
Issue: Bug Report 🐞
Bug that needs to be fixed
Description
Running kedro with the command
kedro run --from-nodes "two_inputs([A0,B0]) -> [C1]"
will cause an error:Pipeline does not contain nodes named ['B0]) -> [C1]', 'two_inputs([A0'].
Kedro has incorrectly split the name of the intended Node into the names of two Nodes that do not exist.
This bug prevents the user from re-running kedro from any Node with a comma in its name. This is the case for any Node that is not explicitly given a name and has more than one input or output.
Steps to Reproduce
kedro run --from-nodes 'My node, a good node'
)Pipeline does not contain nodes named ['a good node', 'My node']
.Context
#1828
Implementation
@jmholzer idea of a fine-state machine csv-parsing type solution to do the string splitting rather than just blindly splitting on
,
. This would basically mean that,
inside()
would not split the string.The text was updated successfully, but these errors were encountered: