expr cast to a timestamp using an optional formatting.
expr: A STRING expression representing a timestamp.
fmt: An optional format STRING expression.
fmt is supplied, it must conform with Datetime patterns (Databricks SQL).
fmt is not supplied, the function is a synonym for
cast(expr AS TIMESTAMP).
fmt is malformed or its application does not result in a well formed timestamp, the function raises an error.