Professional Documents
Culture Documents
Calling Functions and Stored Procedures in Snowpark Java - Snowflake Documentation
Calling Functions and Stored Procedures in Snowpark Java - Snowflake Documentation
If a system-defined SQL function is not available in the Functions class, you can
use the Functions.callUDF static method to call the system-defined function.
For callUDF , pass the name of the system-defined function as the first argument.
If you need to pass the values of columns to the system-defined function, define
and pass Column objects as additional arguments to the callUDF method.
The following example calls the system-defined function RADIANS, passing in the
value from the column degrees :
// Call the system-defined function RADIANS() on degrees.
DataFrame dfDegrees = session.range(0, 360, 45).rename("degrees", Fun
dfDegrees.select(Functions.col("degrees"), Functions.callUDF("radians
The callUDF method returns a Column , which you can pass to the DataFrame
transformation methods (e.g. filter, select, etc.).
Calling scalar user-defined functions (UDFs)
https://docs.snowflake.com/en/developer-guide/snowpark/java/calling-functions 1/1