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

Function print_maxrows_limited_wide_table

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

Source from the content-addressed store, hash-verified

634
635 #[test]
636 fn print_maxrows_limited_wide_table() {
637 let output = PrintBatchesTest::new()
638 .with_format(PrintFormat::Table)
639 .with_batches(vec![wide_column_batch()])
640 .with_maxrows(MaxRows::Limited(1))
641 .run();
642 assert_snapshot!(output, @r"
643 +----+----+----+----+----+----+----+----+----+----+
644 | c0 | c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c9 |
645 +----+----+----+----+----+----+----+----+----+----+
646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
647 | . |
648 | . |
649 | . |
650 +----+----+----+----+----+----+----+----+----+----+
651 ");
652 }
653
654 /// return a schema with many columns (to exercise wide table formatting)
655 fn wide_column_schema() -> SchemaRef {

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…