Allow multiple nodes to return same output
See original GitHub issueDescription
I want to visualize a particular pipeline in which multiple nodes point to same output. This gives me an error in the current version of kedro 0.17.4. Below is the error that I get:
Error: Output(s) ['target_1', 'target_2'] are returned by more than one nodes. Node outputs must be unique.
node(
node_dummy_fun,
inputs=["source_1"],
outputs="target_1",
name="job_id_x2",
),
node(
node_dummy_fun,
inputs=None,
outputs="target_1",
name="random",
),
Above nodes have different inputs and they point to same outputs.
Context
I just need to use Kedro viz for visualization of data-lineage and this scenario can benefit from this feature.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Neural Network - Multiple output nodes have same value
I have a neural network with 4 output nodes and I mapped every output node to a different action. Hidden and output nodes...
Read more >[Request] Blueprint: Multiple return nodes in a function
Just allow us to have multiple return nodes in a single function which we can use to break out of the function and...
Read more >Writing Functions - Node-RED
A function can return multiple messages on an output by returning an array of messages within the returned array. When multiple messages are...
Read more >Connect nodes at same level - GeeksforGeeks
Given a Binary Tree, The task is to connect all the adjacent nodes at the same level starting from the left-most node of...
Read more >Using the Node-Red Function Node- Beginners Guide
You can use an array to return multiple msg objects on a single output. ... return [msg_object_array];. Important you are returning an array...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@datajoely Actually, I went into my virtual environment directory and commented the line of code there itself. This way it’ll work for all other visualization projects created inside that virtual environment.
Well done! Since the constraint is on the Kedro core side rather than the Viz side, perhaps you want to look into generating the JSON yourself longer term?
You can see what Kedro generates using this command:
I’m going to close this issue since it’s an intended constraint on the core side - but Viz doesn’t really care!