Skip to main content Module predicate Copy item path Source 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. 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. 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. 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.