This topic describes how to call an external function:
If appropriate, grant USAGE privilege on the external function to one or more Snowflake roles so that the roles can call the external function. A role must have USAGE or OWNERSHIP privileges on that external function.
Call your external function as you would execute any UDF. For example, if you create the sample function provided by Snowflake:
select my_external_function(42, 'Life, the Universe, and Everything');Copy
If you customized the function name when you created the function, then replace my_external_function
with the customized name.
The returned value should be similar to:
[42, "Life, the Universe, and Everything"]Copy
Note
External functions are schema objects so the schema containing the function must be in use in your session or you must specify the fully-qualified name of the function when calling it.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4