Module functions

Module functions 

Source

Functionsยง

can_coerce_from
Return true if a value of type type_from can be coerced (losslessly converted) into a value of type_to
coerced_from ๐Ÿ”’
Find the coerced type for the given type_into and type_from. Returns None if coercion is not possible.
data_types
Performs type coercion for function arguments.
data_types_with_scalar_udf
Performs type coercion for scalar function arguments.
fields_with_aggregate_udf
Performs type coercion for aggregate function arguments.
fields_with_window_udf
Performs type coercion for window function arguments.
get_valid_types ๐Ÿ”’
Returns a Vec of all possible valid argument types for the given signature.
get_valid_types_with_aggregate_udf ๐Ÿ”’
get_valid_types_with_scalar_udf ๐Ÿ”’
get_valid_types_with_window_udf ๐Ÿ”’
is_well_supported_signature ๐Ÿ”’
maybe_data_types ๐Ÿ”’
Try to coerce the current argument types to match the given valid_types.
maybe_data_types_without_coercion ๐Ÿ”’
Check if the current argument types can be coerced to match the given valid_types unlike maybe_data_types, this function does not coerce the types. TODO: I think this function should replace maybe_data_types after signature are well-supported.
try_coerce_types ๐Ÿ”’