pub fn convert_indexes_to_skips(indexes: Vec<usize>) -> Vec<usize>
Expand description

Transforms a vector containing indexes of needed columns into one containing the “skips” an iterator over a Row would need to perform to see those values.

This function requires that all of the elements in indexes are strictly increasing.

Examples

use mz_compute_client::plan::reduce::convert_indexes_to_skips;
assert_eq!(convert_indexes_to_skips(vec![3, 6, 10, 15]), [3, 2, 3, 4])