MSC-BQ0003

The Create Function Options clause is not supported by Snowflake

Severity

Medium (waiting for CoE revision)

Description

This warning is added to the Create Function statement when the OPTIONS clause is included there.

Code Example

Input Code:

CREATE FUNCTION funcOptions (param1 integer)
RETURNS INTEGER
AS (x * y)
OPTIONS(
    description="UDF with all supported options",
    library=["gs://my-bucket/lib1.js", "gs://my-bucket/lib2.js"],
    endpoint="https://www.snowflake.com/foo",
    user_defined_context=[("key1","value1"),("key2", "value2")],
    max_batching_rows=1000
);

Output Code:

Recommendations

  • No additional user actions are required, it is just informative.

  • Add manual changes to the not transformed expression.

  • If you need more support, you can email us at [email protected]

Last updated