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

Function print_maxrows_limited_one_batch

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

Source from the content-addressed store, hash-verified

409
410 #[test]
411 fn print_maxrows_limited_one_batch() {
412 let output = PrintBatchesTest::new()
413 .with_format(PrintFormat::Table)
414 .with_batches(vec![one_column_batch()])
415 .with_maxrows(MaxRows::Limited(1))
416 .run();
417 assert_snapshot!(output, @r"
418 +---+
419 | a |
420 +---+
421 | 1 |
422 | . |
423 | . |
424 | . |
425 +---+
426 ");
427 }
428
429 #[test]
430 fn print_maxrows_limited_multi_batched() {

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…