From 45c11ac8cd7f23c346fe246474479e38d5512cca Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Thu, 5 Dec 2024 14:08:59 -0700 Subject: [PATCH 1/2] Use `sql` instead of `compiled_code` within the default `get_limit_sql` macro --- dbt/include/global_project/macros/adapters/show.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/global_project/macros/adapters/show.sql b/dbt/include/global_project/macros/adapters/show.sql index 3a5faa98..fb17bb96 100644 --- a/dbt/include/global_project/macros/adapters/show.sql +++ b/dbt/include/global_project/macros/adapters/show.sql @@ -19,7 +19,7 @@ {%- endmacro -%} {% macro default__get_limit_sql(sql, limit) %} - {{ compiled_code }} + {{ sql }} {% if limit is not none %} limit {{ limit }} {%- endif -%} From 28e648f57b34fa826cf1713bfbc9e21dc0bea529 Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Thu, 5 Dec 2024 14:11:52 -0700 Subject: [PATCH 2/2] Changelog entry --- .changes/unreleased/Fixes-20241205-141122.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/Fixes-20241205-141122.yaml diff --git a/.changes/unreleased/Fixes-20241205-141122.yaml b/.changes/unreleased/Fixes-20241205-141122.yaml new file mode 100644 index 00000000..071cfb55 --- /dev/null +++ b/.changes/unreleased/Fixes-20241205-141122.yaml @@ -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"