joshua_janicas
01/10/2024, 9:15 PMmanifest.json file to populate the lineage of its assets. However let's say that we are starting with a fresh database to ELT to, every time I try to generate the manifest.json with let's say meltano invoke dbt-snowflake:docs-generate, I get errors because Snowflake doesn't have the models in place yet.
Example:
21:00:37 Encountered an error:
Runtime Error
Compilation Error in model stg_core_db__attribute_definition_name_localization (models\staging\core_db\localizations\stg_core_db__attribute_definition_name_localization.sql)
In get_column_values(): relation CAMIS.Camis.stg_core_db__locales does not exist and no default value was provided.
> in macro statement (macros\etc\statement.sql)
> called by macro default__get_column_values (macros\sql\get_column_values.sql)
> called by macro get_column_values (macros\sql\get_column_values.sql)
> called by macro localization_table_generate (macros\localization_table_generate.sql)
> called by model stg_core_db__attribute_definition_name_localization (models\staging\core_db\localizations\stg_core_db__attribute_definition_name_localization.sql)
The only way I have been able to generate the manifest on an empty DB with no raw data yet is if I run meltano invoke dbt-snowflake:seed, but I want Dagster to do that, not me manually. But if there is no manifest file, Dagster crashes.joshua_janicas
01/10/2024, 9:17 PM.meltano\transformers\dbt via docs-generate for Dagster to use, but I am thinking that may not be the best idea and instead I need to serve that manifest ahead of time.joshua_janicas
01/10/2024, 9:19 PMptd
01/10/2024, 10:20 PMdbt --quiet parse to generate a manifest.json which I believe doesn’t even require a database connectionjoshua_janicas
01/11/2024, 12:14 PMdbt-snowflake doesnt have the parse command set up out of the box but I was able to get around that by configuring a custom command
plugins:
utilities:
- name: dbt-snowflake
variant: dbt-labs
# <https://docs.getdbt.com/docs/dbt-versions/core>
pip_url: dbt-core~=1.7.0 dbt-snowflake~=1.7.0 git+<https://github.com/meltano/dbt-ext.git@main>
commands:
parse_manifest:
args: parse --quiet
executable: dbt_invokerjoshua_janicas
01/11/2024, 12:14 PM