Skip to content

Commit

Permalink
ignore limit altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
dataders authored Apr 2, 2024
1 parent 7d414cd commit 4887c4c
Showing 1 changed file with 4 additions and 3 deletions.
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 4887c4c

Please sign in to comment.