Module utils

Source
Expand description

Utility functions for the interval arithmetic library

Functionsยง

check_support
Indicates whether interval arithmetic is supported for the given expression. Currently, we do not support all PhysicalExprs for interval calculations. We do not support every type of Operators either. Over time, this check will relax as more types of PhysicalExprs and Operators are supported. Currently, CastExpr, NegativeExpr, BinaryExpr, Column and Literal are supported.
convert_duration_type_to_interval
Converts an Interval of Durations to one of time intervals, if applicable. Otherwise, returns None.
convert_interval_type_to_duration
Converts an Interval of time intervals to one of Durations, if applicable. Otherwise, returns None.
get_inverse_op
is_datatype_supported
Indicates whether interval arithmetic is supported for the given data type.
is_operator_supported
Indicates whether interval arithmetic is supported for the given operator.