From d99da52f668b1caf4a986efb54dfcf76736640b9 Mon Sep 17 00:00:00 2001 From: Bryce Baker <36087020+bakerbryce@users.noreply.github.com> Date: Mon, 19 Sep 2022 04:35:31 -0600 Subject: [PATCH] Remove cross-db dbt_utils references (#676) Remove reference to cross-db utils in pivot macro --- macros/sql/pivot.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/sql/pivot.sql b/macros/sql/pivot.sql index 88751062..4233ba9d 100644 --- a/macros/sql/pivot.sql +++ b/macros/sql/pivot.sql @@ -69,7 +69,7 @@ Arguments: {{ agg }}( {% if distinct %} distinct {% endif %} case - when {{ column }} {{ cmp }} '{{ dbt_utils.escape_single_quotes(value) }}' + when {{ column }} {{ cmp }} '{{ escape_single_quotes(value) }}' then {{ then_value }} else {{ else_value }} end