Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-dbt] log_columns_in_relation macro to to only log table_sche…
…ma if present (#20088) ## Summary & Motivation When running the `dbt parse` command on a project like `dagster-open-platform`, the post hook `log_columns_in_relation` macro produces many empty log statements. This updates the macro to only log `table_schema` when it is non-null. ``` make manifest cd dbt && dbt parse && cd .. 15:24:05 Running with dbt=1.7.6 15:24:09 Registered adapter: snowflake=1.7.1 15:24:09 Unable to do partial parsing because profile has changed 15:24:09 Unable to do partial parsing because a project dependency has been added 15:24:09 Unable to do partial parsing because a project config has changed 15:24:09 {} 15:24:09 {} 15:24:09 {} 15:24:09 {} 15:24:09 {} 15:24:09 {} 15:24:09 {} 15:24:09 {} ``` ## How I Tested These Changes Only tested happy-path by updating the macro in the `dbt_modules` directory and running the project. I confirmed that the logs were _not_ produced in my project, but I was unable to test when they _are_ produced. --------- Co-authored-by: Rex Ledesma <[email protected]>
- Loading branch information