MCPcopy Create free account
hub / github.com/apache/arrow-rs / assert_binary_json

Function assert_binary_json

arrow-json/src/lib.rs:316–323  ·  view source on GitHub ↗
(array: ArrayRef)

Source from the content-addressed store, hash-verified

314 }
315
316 fn assert_binary_json(array: ArrayRef) {
317 // encode and check JSON with and without explicit nulls
318 assert_binary_json_with_writer(
319 array.clone(),
320 WriterBuilder::new().with_explicit_nulls(true),
321 );
322 assert_binary_json_with_writer(array, WriterBuilder::new().with_explicit_nulls(false));
323 }
324
325 fn assert_binary_json_with_writer(array: ArrayRef, builder: WriterBuilder) {
326 let batch = RecordBatch::try_from_iter([("bytes", array)]).unwrap();

Callers 1

Calls 3

cloneMethod · 0.45
with_explicit_nullsMethod · 0.45

Tested by 1