Macros
Translation reference to convert Teradata MACRO statement to Snowflake
Description
Teradata's MACRO statement is translated to Snowflake MACRO syntax.
For more information on Teradata MACRO, check here.
Sample Source Patterns
Create Macro Transformation
Teradata
-- Additional Params: -t JavaScript
CREATE MACRO new_table (col1 INTEGER, col2 VARCHAR(12))
AS
(
insert into table1 (col1, col2) values (:col1, :col2);
select * from table1 where col1 = :col1;
);Snowflake
Known Issues
1. Macro transform to store procedure
The Teradata Macro is transformed to a stored procedure since Snowflake does not support Macros.
Related EWIs
SSC-EWI-0022: One or more identifiers in this statement were considered parameters by default.
Last updated
