https://dagster.io/ logo
#ask-community
Title
# ask-community
i

Ivan Doroshenko

06/08/2022, 2:40 PM
Is there way to define phantom assets other than using
SourceAsset
? We are using Databricks and Delta Lake engine so we do not need actual IO Managers for assets materializations but want to maintain declarative assets catalog with dependencies. Is there way to just declare assets definitions and dependencies between them, but all actual materializations will be handled by jobs (and not
@assets
methods) spawning materializations events upon completion.
dagster bot responded by community 2
s

Samuel Stütz

06/08/2022, 3:19 PM
Copy code
@op(
    ins={"...": In(asset_key=AssetKey(["..", ".."]))},
    out=Out(io_manager_key="...", asset_key=AssetKey(["..", ".."])),
)
This works mostly without @asset . You can still see that there will be an asset but the graph and most info only appear after a run. Also materialize does not work. I don’t think it works for Dynamic outputs.
👍 1
s

sandy

06/16/2022, 8:38 PM
Hey Ivan - a couple additional points here: • You don't need to use IO managers to use assets. E.g. you can write assets where the body of the decorated function does the IO, like in the examples here: https://docs.dagster.io/concepts/assets/software-defined-assets#non-argument-dependencies. • In 0.15.0, we released a new way of interleaving ops with assets: https://docs.dagster.io/concepts/assets/software-defined-assets#graph-backed-assets.
Hey Ivan - circling back here - I'm curious to hear how this went for you. Did you manage to figure out how to get past this?