propagate_time_interval_at_right

Function propagate_time_interval_at_right 

Source
fn propagate_time_interval_at_right(
    left_child: &Interval,
    right_child: &Interval,
    parent: &Interval,
    op: &Operator,
    inverse_op: &Operator,
) -> Result<Option<(Interval, Interval)>>
Expand description

During the propagation of [Interval] values on an ExprIntervalGraph, if there exists a timestamp - timestamp operation, the result would be of type Duration. However, we may encounter a situation where a time interval is involved in an arithmetic operation with a Duration type. This function offers special handling for such cases, where the time interval resides on the right side of the operation.