Skip to content

Commit

Permalink
Merge pull request #232 from microsoft/backport_1.7_230
Browse files Browse the repository at this point in the history
Backport 1.7 230
  • Loading branch information
dataders authored Apr 8, 2024
2 parents f69cb95 + afa0232 commit 6a5a4f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:/microsoft/dbt-synapse/issues/218))
Expand Down
7 changes: 4 additions & 3 deletions dbt/include/synapse/macros/adapters/show.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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) %}
Expand Down

0 comments on commit 6a5a4f5

Please sign in to comment.