Skip to main content

row_group_may_match

Function row_group_may_match 

Source
pub(crate) fn row_group_may_match(
    meta: &RowGroupMetaData,
    start_ns: i64,
    end_ns: i64,
) -> bool
Expand description

Returns whether a row group’s timestamp statistics overlap [start_ns, end_ns].

Uses the min/max statistics of column 0 (timestamp_unix_ns). Row groups without usable INT64 statistics are always read, so the check can only skip work, never lose rows.

§Arguments

  • meta - Metadata of the row group.
  • start_ns - Inclusive range start, Unix nanoseconds.
  • end_ns - Inclusive range end, Unix nanoseconds.