What to do with incomplete graphs #4113
Replies: 4 comments 2 replies
-
From @noklam: Few reflections on this:
And the main discrepancy right now is that kedro run and kedro viz slice in opposite logic.
In Kedro run, it's pipeline.from_nodes(A).to_nodes(C) In kedro viz, it means Downstream of A until C and all upstream of C, that is pipeline.from_nodes(A).to_nodes(C) | [pipeline.to](http://pipeline.to/)_nodes(C) # The or operator is not supported in kedro run |
Beta Was this translation helpful? Give feedback.
-
I contend that, at the very least, the errors should be more clear. |
Beta Was this translation helpful? Give feedback.
-
thank you both for your thought on this issue. Very interesting discussion going on here 😄 Just to clarify on your point @noklam
Is this what you have in your mind for the visualisation part? If so,
This is what viz currently shows as it does go upstream |
Beta Was this translation helpful? Give feedback.
-
Back to the situation that @astrojuanlu mentioned here.
but that will give you a nasty error:
Something that can improve:
Assume that we have this information, we can do backtracking properly. Then we have different choice:
|
Beta Was this translation helpful? Give feedback.
-
Let's say you have this:
(Source: https://github.com/kedro-org/kedro-viz/tree/main/demo-project)
If you want to run the left branch, you might type this:
but that will give you a nasty error:
If, on the other hand, you run the right branch,
kedro run --from-nodes=ingestion.apply_types_to_companies --to-nodes=ingestion.combine_step
it will fail with another errorNo such file or directory: '...data/02_intermediate/typed_shuttles.pq'
.The two errors are different but the root cause is the same: you are trying to execute a node that needs inputs that haven't been generated.
We (re-)discovered this behavior while reviewing the upcoming slicing feature of Kedro-Viz kedro-org/kedro-viz#2036
At some point we discussed the possibility of making
kedro run
do some backtracking. But there are lots of implications.Beta Was this translation helpful? Give feedback.
All reactions