Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improper relation name (too many dotted names) for tables further than staging #10

Open
thomasglaser opened this issue Dec 27, 2024 · 1 comment

Comments

@thomasglaser
Copy link

thomasglaser commented Dec 27, 2024

hi,

none of the create table tasks in the DAGs are working. they are exiting with this error message:

improper relation name (too many dotted names): dbt.***.dbt.customers__dbt_backup

it has nothing to do with the drop table macro itself but with the rendering of database.schema.table. proof is in the log of the docker postgres db:

DROP TABLE IF EXISTS dbt."postgres"."dbt"."orders__dbt_backup" CASCADE

in the dbt_profile_overrides dag it renders to the following:
improper relation name (too many dotted names): my_dbt_schema.***.my_dbt_schema.customers__dbt_backup

any idea for that? i didn't change a single line in the code.

thanks for helping
thomas

@judeleonard
Copy link

Hi @thomasglaser, the issue is as a result of the drop staging tables command in your macros. Once removed I believe the error should go away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants