fn is_end_bound_safe_for_range(
end_bound: &WindowFrameBound,
orderby_col: &ArrayRef,
most_recent_ob_col: Option<&ArrayRef>,
sort_options: &SortOptions,
idx: usize,
) -> Result<bool>Expand description
For row-based window frames, determines whether the end bound calculation
is safe by comparing it against specific values (zero, current row). It uses
the is_row_ahead helper function to determine if the current row is ahead
of the most recent row based on the ORDER BY column and sorting options.
§Parameters
end_bound: Reference to the window frame bound in question.orderby_col: Reference to the column used for ordering.most_recent_ob_col: Optional reference to the most recent order-by column.sort_options: The sorting options used in the window frame.idx: The current index in the window frame.
§Returns
A Result indicating whether the end bound is safe for range-based window frames.