From a105f1d7e2b71228f1b5058be4a1875960f0ef9b Mon Sep 17 00:00:00 2001 From: Simo Tumelius Date: Fri, 25 Nov 2022 17:56:56 +0200 Subject: [PATCH] Change `print_profile_docs` macro now uses the `print` dbt jinja macro instead of `log` for cleaner output (requires dbt version >=1.1.0) (#61) * Change print_profile_docs now uses the print jinja macro instead of log for cleaner output (requires dbt version >=1.1.0) * Bump require-dbt-version to 1.1.0 * Update README Co-authored-by: Simo Tumelius --- README.md | 2 +- dbt_project.yml | 2 +- macros/print_profile_docs.sql | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ce888d9..0d71bcd 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ One of the advantages of the `doc` approach over the `meta` approach is that it ## Installation -`dbt-profiler` requires dbt version `>=0.19.2`. Check [dbt Hub](https://hub.getdbt.com/data-mie/dbt_profiler/latest/) for the latest installation instructions. +`dbt-profiler` requires dbt version `>=1.1.0`. Check [dbt Hub](https://hub.getdbt.com/data-mie/dbt_profiler/latest/) for the latest installation instructions. ## Supported adapters diff --git a/dbt_project.yml b/dbt_project.yml index 182df3a..b13f019 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ name: "dbt_profiler" version: "0.3.0" -require-dbt-version: ">=0.19.2" +require-dbt-version: ">=1.1.0" config-version: 2 target-path: "target" diff --git a/macros/print_profile_docs.sql b/macros/print_profile_docs.sql index 60acb2f..248a9fc 100644 --- a/macros/print_profile_docs.sql +++ b/macros/print_profile_docs.sql @@ -7,9 +7,9 @@ {% endif %} {% if execute %} - {{ log('{% docs ' + docs_name + ' %}', info=True) }} + {{ print('{% docs ' + docs_name + ' %}') }} {% do results.print_table(max_rows=max_rows, max_columns=max_columns, max_column_width=max_column_width, max_precision=max_precision) %} - {{ log('{% enddocs %}', info=True) }} + {{ print('{% enddocs %}') }} {% endif %} {% endmacro %} \ No newline at end of file