Hi,
I have 2 questions on pre-hook:
-
I need to put a table as source, and also use it as a model. So the table needs to exist at the first beginning. I tried to use pre_hook to run DDL in the table model. I found the pre-hook will run so table will be created but the model will fail and complain the table has existed. The reason should be somehow dbt will not create the backup table when it doesn’t exist at first. Is there a way to fix this?
-
I expect the pre-hook to run the DDL can be a separate step in airflow generated by dbt. Is there a way to do this?
Thanks