/// Extracts min/max values of the timestamp column, from the TableSummary, if possible
Extracts min/max values of the timestamp column, from the TableSummary, if possible
Extracts min / max values of the timestamp column from the TableSummary if possible
fn extract_range(table_summary: &TableSummary) -> Option<TimestampRange> {
    table_summary
        .column(TIME_COLUMN_NAME)
        .map(|c| {
            if let Statistics::I64(s) = &c.stats {
                if let (Some(min), Some(max)) = (s.min, s.max) {
                    return Some(TimestampRange::new(min, max));
                }
            }
            None
        })
        .flatten()
}
fn extract_range ( table_summary : & TableSummary ) -> Option < TimestampRange > { table_summary . column ( TIME_COLUMN_NAME ) . map ( | c | { if let Statistics :: I64 ( s ) = & c . stats { if let ( Some ( min ) , Some ( max ) ) = ( s . min , s . max ) { return Some ( TimestampRange :: new ( min , max ) ) ; } } None } ) . flatten ( ) }
Extracts min/max values of the timestamp column, from the TableSummary, if possible
Extracts min / max values of the timestamp column from the TableSummary if possible
table_summary
&TableSummary