Skip to content

Commit

Permalink
Change print_profile_docs macro now uses the print dbt jinja macr…
Browse files Browse the repository at this point in the history
…o 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 <[email protected]>
  • Loading branch information
stumelius and datamie-simo authored Nov 25, 2022
1 parent 641567c commit a105f1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions macros/print_profile_docs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit a105f1d

Please sign in to comment.