geocode external function define

This commit is contained in:
Yam ZhengLim
2023-05-20 13:28:46 +00:00
parent 2775f41dfc
commit f08ed4ef0e
3 changed files with 25 additions and 7 deletions
+2 -2
View File
@@ -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) -%}
GLOBAL_FUNCTION.EUDF.ECHO_ADDRESS_TO_COORDINATES({{column1}}, {{column2}})
{%- macro address_to_coordinates(column1, column2, column3, column4, column5) -%}
GLOBAL_FUNCTION.EUDF.ECHO_ADDRESS_TO_COORDINATES({{column1}}, {{column2}}, {{column3}}, {{column4}}, {{column5}})
{%- endmacro -%}