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

Function three_column_batch

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

Return a batch with three columns and three rows

()

Source from the content-addressed store, hash-verified

607
608 /// Return a batch with three columns and three rows
609 fn three_column_batch() -> RecordBatch {
610 RecordBatch::try_new(
611 three_column_schema(),
612 vec![
613 Arc::new(Int32Array::from(vec![1, 2, 3])),
614 Arc::new(Int32Array::from(vec![4, 5, 6])),
615 Arc::new(Int32Array::from(vec![7, 8, 9])),
616 ],
617 )
618 .unwrap()
619 }
620
621 /// Return a schema with one column
622 fn one_column_schema() -> SchemaRef {

Callers 9

print_csv_no_headerFunction · 0.85
print_csv_with_headerFunction · 0.85
print_tsv_no_headerFunction · 0.85
print_tsv_with_headerFunction · 0.85
print_tableFunction · 0.85
print_jsonFunction · 0.85
print_ndjsonFunction · 0.85

Calls 1

three_column_schemaFunction · 0.85

Tested by 9

print_csv_no_headerFunction · 0.68
print_csv_with_headerFunction · 0.68
print_tsv_no_headerFunction · 0.68
print_tsv_with_headerFunction · 0.68
print_tableFunction · 0.68
print_jsonFunction · 0.68
print_ndjsonFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…