OptionaldefaultDEFAULT value ON CONVERSION ERROR (Oracle): CAST(x AS type DEFAULT val ON CONVERSION ERROR)
Whether PostgreSQL :: syntax was used (true) vs CAST() function (false)
OptionalformatFORMAT clause for BigQuery: CAST(x AS STRING FORMAT 'format_string')
The expression being cast.
The target data type.
Represent a type cast expression.
Covers both the standard
CAST(expr AS type)syntax and the PostgreSQL shorthandexpr::type. Also used as the payload forTryCastandSafeCastvariants. Supports optional FORMAT (BigQuery) and DEFAULT ON CONVERSION ERROR (Oracle) clauses.