Supported in: Batch, Streaming
Cast expression to given logical type. Unlike the regular cast expression, this expression will not change the underlying base representation of the data, but rather enforce the constraints associated with the specified logical type, so that the output can be used as the input to downstream expressions which specifically demand an instance of that logical type.
Expression categories: Cast
Type variable bounds: C accepts AnyType
Output type: C
Description: Unsuccessful cast to natural number with default Argument values:
Output: null
Description: Successful cast to natural number Argument values:
Output: 1234
Description: Unsuccessful cast to natural number Argument values:
Output: null
Description: Unsuccessful cast to natural number with default Argument values:
Output: 1