Type Conversions

Applies to: ✅ Data Cloud SQL ✅ Tableau Hyper API

Converting from one data type to another can be done using CAST or TRY_CAST.

The SQL CAST function converts a value from one type to another. If the type conversion fails, an error will be thrown. In contrast, the TRY_CAST function returns NULL if the conversion fails. The syntax :: is equivalent CAST.

Examples: