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
PhysicalExpr
s for interval calculations. We do not support every type ofOperator
s either. Over time, this check will relax as more types ofPhysicalExpr
s andOperator
s are supported. Currently,CastExpr
,NegativeExpr
,BinaryExpr
,Column
andLiteral
are supported. - convert_
duration_ type_ to_ interval - Converts an
Interval
ofDuration
s to one of time intervals, if applicable. Otherwise, returnsNone
. - convert_
interval_ type_ to_ duration - Converts an
Interval
of time intervals to one ofDuration
s, 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.