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

Function print_csv_with_header

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

Source from the content-addressed store, hash-verified

271
272 #[test]
273 fn print_csv_with_header() {
274 let output = PrintBatchesTest::new()
275 .with_format(PrintFormat::Csv)
276 .with_batches(split_batch(&three_column_batch()))
277 .with_header(WithHeader::Yes)
278 .run();
279 assert_snapshot!(output, @r"
280 a,b,c
281 1,4,7
282 2,5,8
283 3,6,9
284 ");
285 }
286
287 #[test]
288 fn print_tsv_no_header() {

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
three_column_batchFunction · 0.85
split_batchFunction · 0.70
runMethod · 0.45
with_headerMethod · 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…