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 and dataders committed Apr 8, 2024
1 parent f69cb95 commit e2c014a
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 e2c014a

Please sign in to comment.