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

Function print_json

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

Source from the content-addressed store, hash-verified

332 }
333 #[test]
334 fn print_json() {
335 let output = PrintBatchesTest::new()
336 .with_format(PrintFormat::Json)
337 .with_batches(split_batch(&three_column_batch()))
338 .with_header(WithHeader::Ignored)
339 .run();
340 assert_snapshot!(output, @r#"[{"a":1,"b":4,"c":7},{"a":2,"b":5,"c":8},{"a":3,"b":6,"c":9}]"#);
341 }
342
343 #[test]
344 fn print_ndjson() {

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…