fn group_ranges_for_seq_scan(ranges: Vec<RangeMeta>) -> Vec<RangeMeta>
Groups ranges by time range. It assumes each input range only contains a file or a memtable.