So lets say i use `load_assets_from_dbt_manifest` ...
# ask-community
f
So lets say i use
load_assets_from_dbt_manifest
in
project/assets/__init__.py
. How do in a subfile
project/assets/tableau.py
create a downstream dependency between the the tableau asset and a dbt asset without circular import. Tried to use
get_asset_key_for_model
, but then i have to import dbt_assets from the
__init__.py
, which will cause circular import, since i am already importing that from
project/__init__.py
to load all schedules, assets, jobs etc. using
Definitions
s
Hi Frederik, Do you need to dynamically determine the asset key? If not, you can specify as an
AssetKey(["seg1", "seg2", ...])
literal.
f
How would it look dynamically 😎?
s
IIUC if you need to do it dynamically then we have the same problem of needing to import the dbt assets