extract i32 values from batches and sort them
(partitions: &[Vec<RecordBatch>])
| 46 | |
| 47 | /// extract i32 values from batches and sort them |
| 48 | pub fn partitions_to_sorted_vec(partitions: &[Vec<RecordBatch>]) -> Vec<Option<i32>> { |
| 49 | let mut values: Vec<_> = partitions |
| 50 | .iter() |
| 51 | .flat_map(|batches| batches_to_vec(batches).into_iter()) |
| 52 | .collect(); |
| 53 | |
| 54 | values.sort_unstable(); |
| 55 | values |
| 56 | } |
| 57 | |
| 58 | /// Adds a random number of empty record batches into the stream |
| 59 | pub fn add_empty_batches( |
searching dependent graphs…