Skip to content

Commit

Permalink
Use sql instead of compiled_code within the default `get_limit_sq…
Browse files Browse the repository at this point in the history
…l` macro (#372)

Co-authored-by: Mila Page <[email protected]>
  • Loading branch information
dbeatty10 and VersusFacit authored Dec 19, 2024
1 parent 213a4b3 commit d7165c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20241205-141122.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Use `sql` instead of `compiled_code` within the default `get_limit_sql` macro
time: 2024-12-05T14:11:22.10765-07:00
custom:
Author: dbeatty10
Issue: "372"
2 changes: 1 addition & 1 deletion dbt/include/global_project/macros/adapters/show.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{%- endmacro -%}

{% macro default__get_limit_sql(sql, limit) %}
{{ compiled_code }}
{{ sql }}
{% if limit is not none %}
limit {{ limit }}
{%- endif -%}
Expand Down

0 comments on commit d7165c1

Please sign in to comment.