From 8823644c97af3631f96fd9a78e751b836b00ccf1 Mon Sep 17 00:00:00 2001 From: Pradeep Srikakolapu Date: Fri, 24 May 2024 05:57:16 -0700 Subject: [PATCH] Update columns.sql --- dbt/include/synapse/macros/adapters/columns.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/include/synapse/macros/adapters/columns.sql b/dbt/include/synapse/macros/adapters/columns.sql index 37ecb9d3..640cc1a7 100644 --- a/dbt/include/synapse/macros/adapters/columns.sql +++ b/dbt/include/synapse/macros/adapters/columns.sql @@ -7,7 +7,7 @@ path={"identifier": relation.identifier.replace("#", "") ~ '_tmp_tbl_hack'}, type='table')-%} - {% do drop_relation(tmp_tbl_hack) %} + {% do adapter.drop_relation(tmp_tbl_hack) %} {% set sql_create %} CREATE TABLE {{ tmp_tbl_hack }} WITH( @@ -23,7 +23,7 @@ {% call statement() -%} {{ sql_create }} {%- endcall %} {% set output = get_columns_in_relation(tmp_tbl_hack) %} - {% do drop_relation(tmp_tbl_hack) %} + {% do adapter.drop_relation(tmp_tbl_hack) %} {{ return(output) }} {% endif %}