Hi All, What would be the best way to do this in ...
# ask-community
c
Hi All, What would be the best way to do this in dagster
Copy code
if x
  asset_1(date 1 , date2)
else if y 
  asset_1(date 1, date 3)
  asset_2(date 1, date 3)
else if z
  asset_2(date 4, date 2)
else if a
  asset_1(date 1, date 2)
  asset_2(date 1, date 2)
  asset_2(date2, date 3)
dagster bot responded by community 1
g
You should be able to do it just like that in a job / graph
j
It depends on what the condition is but it looks like conditional meterialization and I think there is something that might help: https://github.com/dagster-io/dagster/discussions/7306#discussioncomment-2511474