dbt-labs / dbt-athena

The athena adapter plugin for dbt (https://getdbt.com)
https://dbt-athena.github.io
Apache License 2.0
228 stars 100 forks source link

[Bug] dbt docs generate issue in new version 1.8.2 (and also continues to 1.8.4) #720

Open chenp-eleos opened 2 months ago

chenp-eleos commented 2 months ago

Is this a new bug in dbt-athena?

Current Behavior

when running dbt docs generate we are getting an error, but when using version 1.8.2 of the adapter it works like a charm. This is the error: Encountered an error while generating catalog: Table type cannot be None for table XXXXXXX.bronze_dev.events_mp_master_event

I can see it is happening only when trying to generate catalog in target dev, and it seems like it is affected by another source which inside it we use: schema: "{{ 'bronze_dev' if target.name == 'dev' else 'bronze_prod' }}"

but in the source events_mp_master_event we use just: schema: bronze_prod

so why it is affecting it?

Expected Behavior

dbt docs generate works as before

Steps To Reproduce

No response

Environment

- OS:
- Python:
- dbt:
- dbt-athena-community:

Additional Context

No response