ABORT and ROLLBACK

Translation reference to convert Teradata ABORT and ROLLBACK statements to Snowflake Scripting

Description

Teradata's ABORT and ROLLBACK statements are replaced by a ROLLBACK statement in Snowflake Scripting.

For more information on Teradata ABORT and for ROLLBACK.

ABORT [abort_message] [FROM option] [WHERE abort_condition];

ROLLBACK [WORK] [abort_message] [FROM clause] [WHERE clause];

Sample Source Patterns

Basic ABORT and ROLLBACK

Teradata

REPLACE PROCEDURE procedureBasicAbort() 
BEGIN
    ABORT;	
    ROLLBACK;
END;

Snowflake Scripting

Conditional ABORT and ROLLBACK

Teradata

Snowflake Scripting

ABORT and ROLLBACK with table references and FROM clause

Teradata

Snowflake Scripting

ABORT and ROLLBACK with table references without FROM clause

Teradata

Snowflake Scripting

Known Issues

1. Custom Error Message

Even though the ROLLBACK AND ABORT are supported, using them with a custom error message is not supported.

Teradata

Snowflake Scripting

2. Aggregate function

The use of the aggregate function combined with ABORT/ROLLBACK is not supported

Teradata

Snowflake Scripting

  1. MSCEWI1021: ROLLBACK RETURN MESSAGE NOT SUPPORTED

  2. MSCEWI2024: ABORT STATEMENT IS NOT SUPPORTED DUE TO AN AGGREGATE FUNCTION

Last updated

Was this helpful?