Skip to content

Commit

Permalink
Merge pull request #230 from dataders/patch-1
Browse files Browse the repository at this point in the history
ignore limit altogether
  • Loading branch information
amychen1776 authored Apr 4, 2024
2 parents 7d414cd + 4887c4c commit 568669e
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 568669e

Please sign in to comment.