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

Function print_maxrows_limited_multi_batched

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

Source from the content-addressed store, hash-verified

428
429 #[test]
430 fn print_maxrows_limited_multi_batched() {
431 let output = PrintBatchesTest::new()
432 .with_format(PrintFormat::Table)
433 .with_batches(vec![
434 one_column_batch(),
435 one_column_batch(),
436 one_column_batch(),
437 ])
438 .with_maxrows(MaxRows::Limited(5))
439 .run();
440 assert_snapshot!(output, @r"
441 +---+
442 | a |
443 +---+
444 | 1 |
445 | 2 |
446 | 3 |
447 | 1 |
448 | 2 |
449 | . |
450 | . |
451 | . |
452 +---+
453 ");
454 }
455
456 #[test]
457 fn test_print_batches_empty_batches() {

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
with_maxrowsMethod · 0.80
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…