Module common

Module common 

Source

Constantsยง

ERR_NANOSECONDS_NOT_SUPPORTED ๐Ÿ”’
Error message if nanosecond conversion request beyond supported interval

Functionsยง

handle ๐Ÿ”’
handle_array_op ๐Ÿ”’
handle_multiple ๐Ÿ”’
string_to_datetime_formatted ๐Ÿ”’
Accepts a string and parses it using the chrono::format::strftime specifiers relative to the provided timezone
string_to_timestamp_millis_formatted ๐Ÿ”’
Accepts a string with a chrono format and converts it to a millisecond precision timestamp.
string_to_timestamp_nanos_formatted ๐Ÿ”’
Accepts a string with a chrono format and converts it to a nanosecond precision timestamp.
string_to_timestamp_nanos_shim ๐Ÿ”’
Calls string_to_timestamp_nanos and converts the error type
strings_to_primitive_function ๐Ÿ”’
given a function op that maps &str, &str to the first successful Result of an arrow native type, returns a PrimitiveArray after the application of the function to args and the subsequence application of the op2 function to any successful result. This function calls the op function with the first and second argument and if not successful continues with first and third, first and fourth, etc until the result was successful or no more arguments are present.
unary_string_to_primitive_function ๐Ÿ”’
given a function op that maps a &str to a Result of an arrow native type, returns a PrimitiveArray after the application of the function to args[0].
validate_data_types ๐Ÿ”’
Checks that all the arguments from the second are of type Utf8, LargeUtf8 or Utf8View