Open mkleinbort-ic opened 1 year ago
Just to highlight the use-case I'd love to support:
Suppose I am trying to do a manual materialization of all assets downstream of X that feed into asset Y
I want to be able to select those assets as "X"* & *"Y"
to avoid materializing dozens of irrelevant assets downstream of X
and also dozens of assets upstream of Y
In fact, I plan to use these "asset selections" in my documentation/incident resolution.
Eg. when Situation #27
happens kick of this manual materialization as described by url = ...
Possibly a duplicate request. @bengotow?
Hey folks! I think this is a great suggestion -- I know we've had requests in the past for AND / OR behavior in the query syntax, and we likely need to add parenthesis support when we do this as well.
I think we're going to wait a bit before we expand this syntax and add more operators because 1) we'd like to extend the syntax through to our python layer (so you could use it when launching materializations from the command-line, etc.) and 2) we've heard from users that we don't do a good job explaining the power of this syntax, and need to surface + teach it better in the UI before we make it even more powerful :-)
In the meantime, the union operator ("|") is actually available in the form of a comma! Because we support asset_a, asset_b
, you can also do asset_a*, asset_b*
(everything downstream of both those assets).
Related:
-asset_b
, "except for" operator request )Yes, I was looking for this today:
https://github.com/dagster-io/dagster/issues/15138 ( a -asset_b, "except for" operator request )
I have a big (500+ asset) DAG that is "beautiful" except for 3 assets that everything depends on. I'd love to see my DAG without those three assets to really see the core logic / show it to stakeholders.
What's the use case?
We currently have a rich asset selection syntax:
And this works well with unions
However, intersections don't work:
Ideas of implementation
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.