Operators

Vertica Operators

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Cast coercion operator

Operator use if want to return:

  • NULL instead of an error for any non-date/time data types

  • NULL instead of an error after setting EnableStrictTimeCasts

( Vertica SQL Language Reference Coercion operator )

To replicate this functionality SnowConvert translates this operator to the TRY_CAST function.

Sample Source Patterns

Input Code:

IN -> Vertica_01.sql
SELECT
    measurement_id,
    reading::!FLOAT AS measurement_value
FROM raw_measurements;

Output Code:

OUT -> Vertica_01.sql
SELECT
    measurement_id,
    TRY_CAST(
    reading AS FLOAT) AS measurement_value
FROM
    raw_measurements;

Last updated