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 ofOperators either. Over time, this check will relax as more types ofPhysicalExprs andOperators are supported. Currently,CastExpr,NegativeExpr,BinaryExpr,ColumnandLiteralare supported. - convert_
duration_ type_ to_ interval - Converts an
IntervalofDurations to one of time intervals, if applicable. Otherwise, returnsNone. - convert_
interval_ type_ to_ duration - Converts an
Intervalof time intervals to one ofDurations, if applicable. Otherwise, returnsNone. - 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.