andrew_stewart
04/05/2021, 2:57 PMtarget-postgres is failing because it can’t drop a target table that is being used in a downstream dbt view.
target-postgres | psycopg2.errors.DependentObjectsStillExist: cannot drop table tap_mongodb.foobar__old because other objects depend on it
target-postgres | DETAIL: view analytics.stg_foobar depends on table tap_mongodb.foobar__old
target-postgres | HINT: Use DROP ... CASCADE to drop the dependent objects too.
target-postgres |
target-postgres | CRITICAL ('foobar - Exception activating table version 1617612127282', DependentObjectsStillExist('cannot drop table tap_mongodb.foobar__old because other objects depend on it\nDETAIL: view analytics.stg_foobar depends on table tap_mongodb.foobar__old\nHINT: Use DROP ... CASCADE to drop the dependent objects too.\n'))nick_hamlin
04/05/2021, 3:02 PMandrew_stewart
04/05/2021, 4:08 PMandrew_stewart
04/05/2021, 4:46 PMandrew_stewart
04/05/2021, 4:46 PMnick_hamlin
04/05/2021, 5:06 PMandrew_stewart
04/05/2021, 5:08 PMdatamill-co/target-postgres side, as the staging of temporary tables should probably use DROP … CASCADE, I would imagine.laurent
04/05/2021, 5:33 PMbefore_run_sql and after_run_sql to drop and recreate stuff around the process.andrew_stewart
04/05/2021, 5:35 PMandrew_stewart
04/05/2021, 5:35 PM