(array: ArrayRef)
| 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(); |