MCPcopy Create free account
hub / github.com/apache/datafusion / output_with_header

Method output_with_header

datafusion-cli/src/print_format.rs:583–596  ·  view source on GitHub ↗
(&self, with_header: bool)

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.80

Calls 2

print_batchesMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected