Conversion functions
Trino will implicitly convert numeric and character values to the correct type if such a conversion is possible. Trino will not convert between character and numeric types. For example, a query that expects a varchar will not automatically convert a bigint value to an equivalent varchar. When necessary, values can be explicitly cast to a particular type.Conversion functions
cast
try_cast
Formatting
format
format_number
Data size
Theparse_data_size function supports the following units:
parse_data_size
string of format value unit into a number, where
value is the fractional number of unit values: