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

Function one_column_batch

datafusion-cli/src/print_format.rs:627–633  ·  view source on GitHub ↗

return a batch with one column and three rows

()

Source from the content-addressed store, hash-verified

625
626 /// return a batch with one column and three rows
627 fn one_column_batch() -> RecordBatch {
628 RecordBatch::try_new(
629 one_column_schema(),
630 vec![Arc::new(Int32Array::from(vec![1, 2, 3]))],
631 )
632 .unwrap()
633 }
634
635 #[test]
636 fn print_maxrows_limited_wide_table() {

Calls 1

one_column_schemaFunction · 0.85

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…