diff --git a/CHANGELOG.md b/CHANGELOG.md index 8471fb9..45af55b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ # Changelog + +## v1.7.2 + +### Under the hood + +* Backport #230 which disables `dbt show`'s `--limit` argument. + ## v1.7.1 -#### Under the hood +### Under the hood * Allow connection to synapse using `authentication: sql` and `user: sqladminuser` in `profiles.yml` - see ([#218](https://github.com/microsoft/dbt-synapse/issues/218)) diff --git a/dbt/include/synapse/macros/adapters/show.sql b/dbt/include/synapse/macros/adapters/show.sql index 4caa6ee..43984e7 100644 --- a/dbt/include/synapse/macros/adapters/show.sql +++ b/dbt/include/synapse/macros/adapters/show.sql @@ -3,10 +3,11 @@ {{ sql_header }} {%- endif -%} {%- if limit is not none -%} - {{ get_limit_subquery_sql(compiled_code, limit) }} - {%- else -%} - {{ compiled_code }} + {%- set warn = "--limit is ignored. Synapse doesn't support the implementation" -%} + {{ log(warn, info=True) }} {%- endif -%} + {{ compiled_code }} + {% endmacro %} {% macro get_limit_subquery_sql(sql, limit) %}