Apache DataFusion SQL Query Engine
Minor: improve documentation to `stagger_batch` (#7754)
Andrew Lamb6685583dfccf
diff --git a/test-utils/src/lib.rs b/test-utils/src/lib.rsindex dfd8782751..e3c96d16ee 100644--- a/test-utils/src/lib.rs+++ b/test-utils/src/lib.rs@@ -70,13 +70,23 @@ pub fn add_empty_batches(}/// "stagger" batches: split the batches into random sized batches+///+/// For example, if the input batch has 1000 rows, [`stagger_batch`] might return+/// multiple batches+/// ```text+/// [+/// RecordBatch(123 rows),+/// RecordBatch(234 rows),+/// RecordBatch(634 rows),+/// ]+/// ```pub fn stagger_batch(batch: RecordBatch) -> Vec<RecordBatch> {let seed = 42;stagger_batch_with_seed(batch, seed)}-/// "stagger" batches: split the batches into random sized batches-/// using the specified value for a rng seed+/// "stagger" batches: split the batches into random sized batches using the+/// specified value for a rng seed. See [`stagger_batch`] for more detail.pub fn stagger_batch_with_seed(batch: RecordBatch, seed: u64) -> Vec<RecordBatch> {let mut batches = vec![];