mirror of
https://gitlab.com/cief-data/dbt_cloud.git
synced 2026-08-19 04:14:00 +00:00
Moved parse_json from main sql to macro sql
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- Macro to call EUDF stored in snowflake
|
||||
-- id, created_datetime, updated_datetime, reference, address_1, address_2, postcode, district, state, country
|
||||
{%- macro address_to_coordinates(column1, column2, column3, column4, column5) -%}
|
||||
GLOBAL_FUNCTION.EUDF.ECHO_ADDRESS_TO_COORDINATES({{column1}}, {{column2}}, {{column3}}, {{column4}}, {{column5}})
|
||||
PARSE_JSON( GLOBAL_FUNCTION.EUDF.ECHO_ADDRESS_TO_COORDINATES({{column1}}, {{column2}}, {{column3}}, {{column4}}, {{column5}}) )
|
||||
{%- endmacro -%}
|
||||
|
||||
Reference in New Issue
Block a user