Skip to main content

extract_from_date_bin_comparison

Function extract_from_date_bin_comparison 

Source
fn extract_from_date_bin_comparison(
    ts_col_name: &str,
    ts_col_unit: TimeUnit,
    left: &Expr,
    op: &Operator,
    right: &Expr,
) -> Option<TimestampRange>
Expand description

Extracts a time range from date_bin(stride, ts_col) <op> literal. The range over-approximates the rows that satisfy the comparison (see date_bin_stride).