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

Function print_table

datafusion-cli/src/print_format.rs:317–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315
316 #[test]
317 fn print_table() {
318 let output = PrintBatchesTest::new()
319 .with_format(PrintFormat::Table)
320 .with_batches(split_batch(&three_column_batch()))
321 .with_header(WithHeader::Ignored)
322 .run();
323 assert_snapshot!(output, @r"
324 +---+---+---+
325 | a | b | c |
326 +---+---+---+
327 | 1 | 4 | 7 |
328 | 2 | 5 | 8 |
329 | 3 | 6 | 9 |
330 +---+---+---+
331 ");
332 }
333 #[test]
334 fn print_json() {
335 let output = PrintBatchesTest::new()

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
three_column_batchFunction · 0.85
split_batchFunction · 0.70
runMethod · 0.45
with_headerMethod · 0.45
with_batchesMethod · 0.45
with_formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…