Return a batch with three columns and three rows
()
| 607 | |
| 608 | /// Return a batch with three columns and three rows |
| 609 | fn three_column_batch() -> RecordBatch { |
| 610 | RecordBatch::try_new( |
| 611 | three_column_schema(), |
| 612 | vec![ |
| 613 | Arc::new(Int32Array::from(vec![1, 2, 3])), |
| 614 | Arc::new(Int32Array::from(vec![4, 5, 6])), |
| 615 | Arc::new(Int32Array::from(vec![7, 8, 9])), |
| 616 | ], |
| 617 | ) |
| 618 | .unwrap() |
| 619 | } |
| 620 | |
| 621 | /// Return a schema with one column |
| 622 | fn one_column_schema() -> SchemaRef { |
searching dependent graphs…