CREATE FUNCTION
Oracle Create Function to Snowflake Snow Scripting
Description
Some parts in the output code are omitted for clarity reasons.
A stored function (also called a user function or user-defined function) is a set of PL/SQL statements you can call by name. Stored functions are very similar to procedures, except that a function returns a value to the environment in which it is called. User functions can be used as part of a SQL expression.
A call specification declares a Java method or a third-generation language (3GL) routine so that it can be called from PL/SQL. You can also use the
CALL
SQL statement to call such a method or routine. The call specification tells Oracle Database which Java method, or which named function in which shared library, to invoke when a call is made. It also tells the database what type conversions to make for the arguments and return value. Oracle SQL Language Reference Create Function.
Oracle Syntax
For more information regarding Oracle Create Function, check here.
Snowflake Syntax
Snowflake allows 3 different languages in their user-defined functions:
SQL
JavaScript
Java
For now, SnowConvert will support only SQL
and JavaScript
as target languages.
For more information regarding Snowflake Create Function, check here.
SQL user-defined functions only support one query as their body. They can read from the database but are not allowed to write to or modify it (Scalar SQL UDFs).
Sample Source Patterns
Sample auxiliary data
This code was executed for a better understanding of the examples:
Known Issues
No issues were found.
Related EWIS
SSC-FDM-OR0042: Date Type Transformed To Timestamp Has A Different Behavior
Last updated