table::predicate

Function extract_time_range_from_expr

source
fn extract_time_range_from_expr(
    ts_col_name: &str,
    ts_col_unit: TimeUnit,
    expr: &Expr,
) -> Option<TimestampRange>
Expand description

Extract time range filter from WHERE/IN (...)/BETWEEN clauses. Return None if no time range can be found in expr.