Skip to main content

Module predicate

Module predicate 

Source

MacrosΒ§

return_none_if_utf8 πŸ”’
Assert the scalar value is not utf8. Returns None if it’s utf8. In theory, it should be converted to a timestamp scalar value by TypeConversionRule.

StructsΒ§

PrecompiledRegexExpr πŸ”’
A regex comparison (col =~ 'pattern' / col !~ 'pattern') compiled on first evaluation.
Predicate
Reference-counted pointer to a list of logical exprs and a list of dynamic filter physical exprs.

EnumsΒ§

DateBinFilters πŸ”’
Whether a filter on date_bin(stride, ts) yields a range on ts.
TimeRangeExtraction
The outcome of strictly extracting the time range of ts_col_name from a scan’s filters. Unlike build_time_range_predicate, which quietly widens to min_to_max on anything it cannot parse (fine for pruning), this distinguishes β€œthe column is not filtered at all” from β€œit is filtered in a way that cannot be safely turned into a range” β€” for callers whose contract forbids silently falling back to a default window.

FunctionsΒ§

build_time_range_predicate
build_time_range_predicate extracts time range from logical exprs to facilitate fast time range pruning.
contains_disjunction_over_column πŸ”’
date_bin_range πŸ”’
The range of ts for which date_bin(stride, ts) <op> bound can hold.
date_bin_stride πŸ”’
Returns the stride of date_bin(stride, ts_col[, origin]), converted to unit and rounded up, if expr is that call with a literal, fixed-width stride.
extract_from_between_expr πŸ”’
extract_from_binary_expr πŸ”’
extract_from_date_bin_comparison πŸ”’
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).
extract_from_in_list_expr πŸ”’
Extract time range filter from IN (...) expr.
extract_time_range πŸ”’
extract_time_range_from_expr
Extract time range filter from WHERE/IN (...)/BETWEEN clauses. Return None if no time range can be found in expr.
extract_time_range_strict
Strictly extracts the time range of ts_col_name from the (implicitly AND-ed) scan filters. See TimeRangeExtraction.
get_timestamp_filter πŸ”’
is_precompilable_regex_type πŸ”’
Returns whether data_type is a string layout [SimpleFilterEvaluator] can evaluate.
is_string_timestamp_literal
regex_column_type πŸ”’
Returns the arrow type the regex comparison in expr evaluates, None if expr is not a column (or a cast of one) this rewrite can reason about.