From 68815b853de1ff1dcfd3d9c93cb3fd369b8a2a6a Mon Sep 17 00:00:00 2001 From: Scott Sugar Date: Wed, 8 May 2024 16:04:42 +0700 Subject: [PATCH] Fabric adapter doesnt work with default cents_to_dollars macro --- macros/cents_to_dollars.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macros/cents_to_dollars.sql b/macros/cents_to_dollars.sql index 3593a3fb..0113ad3e 100644 --- a/macros/cents_to_dollars.sql +++ b/macros/cents_to_dollars.sql @@ -15,3 +15,7 @@ {% macro bigquery__cents_to_dollars(column_name) %} round(cast(({{ column_name }} / 100) as numeric), 2) {% endmacro %} + +{% macro fabric__cents_to_dollars(column_name) %} + cast({{ column_name }} / 100 as numeric(16,2)) +{% endmacro %}