(&self, with_header: bool)
| 581 | } |
| 582 | |
| 583 | fn output_with_header(&self, with_header: bool) -> String { |
| 584 | let mut buffer: Vec<u8> = vec![]; |
| 585 | self.format |
| 586 | .print_batches( |
| 587 | &mut buffer, |
| 588 | self.schema.clone(), |
| 589 | &self.batches, |
| 590 | self.maxrows, |
| 591 | with_header, |
| 592 | &FormatOptions::default(), |
| 593 | ) |
| 594 | .unwrap(); |
| 595 | String::from_utf8(buffer).unwrap() |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | /// Return a schema with three columns |
no test coverage detected