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

Function test_print_batches_empty_batches

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

Source from the content-addressed store, hash-verified

455
456 #[test]
457 fn test_print_batches_empty_batches() {
458 let batch = one_column_batch();
459 let empty_batch = RecordBatch::new_empty(batch.schema());
460
461 let output = PrintBatchesTest::new()
462 .with_format(PrintFormat::Table)
463 .with_batches(vec![empty_batch.clone(), batch, empty_batch])
464 .run();
465 assert_snapshot!(output, @r"
466 +---+
467 | a |
468 +---+
469 | 1 |
470 | 2 |
471 | 3 |
472 +---+
473 ");
474 }
475
476 #[test]
477 fn test_print_batches_empty_batch() {

Callers

nothing calls this directly

Calls 6

one_column_batchFunction · 0.85
newFunction · 0.85
schemaMethod · 0.45
runMethod · 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…