Member Function Definitions

This is a translation reference to convert the Member Functions of the Oracle Create Type Statements (UDT's) to Snowflake

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

Description

Like other Class definitions, Oracle's TYPE can implement methods to expose behaviors based on its attributes. MEMBER FUCTION will be transformed to Snowflake's Stored Procedures, to maintain functional equivalence due to limitations.

Since functions are being transformed into procedures, the transformation reference for PL/SQL also applies here.

Sample Source Patterns

Inserts for Simple square() member function

The next data will be inserted inside the table before querying the select. Please note these Inserts currently need to be manually migrated into Snowflake.

Oracle

INSERT INTO table_member_function_demo(column1) VALUES
(type_member_function_demo(5));

Snowflake

INSERT INTO table_member_function_demo (column1)
SELECT OBJECT_CONSTRUCT('a1', 5);

Simple square() member function

Oracle

Snowflake

Known Issues

No Known issues.

No related EWIs.

Last updated