FUNCTION OPTIONS OR DATA ACCESS

Some parts in the output code are omitted for clarity reasons.

Non-relevant statement.

Description

Functions options or data access options are statements used in functions on the declaration part to specify certain characteristics. These can be:

  • CONTAINS SQL

  • SQL SECURITY DEFINER

  • COLLATION INVOKER

  • SPECIFIC FUNCTION_NAME

Sample Source Patterns

Function Options

Notice that in this example the function options have been removed because they are not required in Snowflake.

IN -> Teradata_01.sql
CREATE FUNCTION sumValues(A INTEGER, B INTEGER)
   RETURNS INTEGER
   LANGUAGE SQL
   CONTAINS SQL
   SQL SECURITY DEFINER
   SPECIFIC sumTwoValues
   COLLATION INVOKER
   INLINE TYPE 1
   RETURN A + B;
OUT -> Teradata_01.sql
CREATE OR REPLACE FUNCTION sumValues (A INTEGER, B INTEGER)
   RETURNS INTEGER
   LANGUAGE SQL
   COMMENT = '{"origin":"sf_sc","name":"snowconvert","version":{"major":1, "minor":0},{"attributes":{"component":"teradata"}}'
   AS
   $$
      A + B
   $$;

Known Issues

No issues were found.

No related EWIs.

Last updated