Harpal
07/18/2022, 3:08 PMload_assets_from_dbt_manifest
method to load dbt assets before?
Upon switching from load_assets_from_dbt_project
one of my jobs has broken 😞
One of them works without fail (utilises the load_assets_from_dbt_manifest
method) but the second one (which uses the same method on a different dbt DAG) fails every time.
Here is the implementation:
manifest_file = f"{DBT_PROJECT_DIR}/target/manifest.json"
with open(manifest_file, "r", encoding="utf-8") as f:
manifest_json = json.load(f)
dbt_assets = load_assets_from_dbt_manifest(
manifest_json=manifest_json,
select="tag:not_rq",
)
The job is simply unable to identify any tables in my database (every single SQL file is unable to SELECT anything FROM
a_table)
See the full error message in the comments.Harpal
07/18/2022, 3:11 PMjamie
07/18/2022, 4:05 PMHarpal
07/18/2022, 4:26 PMdbt run --project-dir ./dbt --profiles-dir ./dbt/config -s tag:not_rq
The equivalent fails on dagster. So I don’t think this is a DBT problem. It may be more of a dagster trying to load DBT elements problem.jamie
07/18/2022, 4:34 PMHarpal
07/18/2022, 4:48 PMHarpal
07/18/2022, 4:52 PMowen
07/18/2022, 4:52 PMHarpal
07/18/2022, 4:52 PMowen
07/18/2022, 4:53 PMowen
07/18/2022, 4:53 PM