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

Function print_ndjson

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

Source from the content-addressed store, hash-verified

342
343 #[test]
344 fn print_ndjson() {
345 let output = PrintBatchesTest::new()
346 .with_format(PrintFormat::NdJson)
347 .with_batches(split_batch(&three_column_batch()))
348 .with_header(WithHeader::Ignored)
349 .run();
350 assert_snapshot!(output, @r#"
351 {"a":1,"b":4,"c":7}
352 {"a":2,"b":5,"c":8}
353 {"a":3,"b":6,"c":9}
354 "#);
355 }
356
357 #[test]
358 fn print_automatic_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…