question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow multiple nodes to return same output

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CapTen101commented, Jun 24, 2021

@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.

1reaction
datajoelycommented, Jun 24, 2021

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: image

I’m going to close this issue since it’s an intended constraint on the core side - but Viz doesn’t really care!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found