Tom Reilly
07/06/2022, 4:05 PMload_assets_from_dbt_project
or load_assets_from_dbt_manifest
will support dbt seeds and snapshots?owen
07/06/2022, 4:39 PMTom Reilly
07/06/2022, 5:37 PMload_assets_from_dbt_project
. When materializing a model and it's downstream assets the dbt build works fine and I see in the logs
Finished running 8 table models, 388 tests in 293.41s.
Completed successfully
Done. PASS=396 WARN=0 ERROR=0 SKIP=0 TOTAL=396
but afterwards dagster is performing asset materializations and I get a KeyError
at this spotnode_info = manifest_json["nodes"][upstream_id]
tries to find that source within the "nodes" key of the manifest.json when it should probably look within the "sources" key based on the dbt docsfor upstream_id in upstream_unique_ids:
manifest_key = "sources" if upstream_id.startswith("source.") else "nodes"
node_info = manifest_json[manifest_key][upstream_id]
upstream_asset_key = node_info_to_asset_key(node_info)
yield AssetObservation(asset_key=upstream_asset_key, metadata=metadata)
owen
07/06/2022, 8:46 PM