Encodes input as a FlightData stream, and then decodes it using FlightRecordBatchStream and validates the decoded record batches match the expected input. When is resolved, it should be possible to use `roundtrip`
(input: Vec<RecordBatch>)
| 429 | /// When <https://github.com/apache/arrow-rs/issues/3389> is resolved, |
| 430 | /// it should be possible to use `roundtrip` |
| 431 | async fn roundtrip_dictionary(input: Vec<RecordBatch>) { |
| 432 | let schema = Arc::new(prepare_schema_for_flight(input[0].schema_ref())); |
| 433 | let expected_output: Vec<_> = input |
| 434 | .iter() |
| 435 | .map(|batch| prepare_batch_for_flight(batch, schema.clone()).unwrap()) |
| 436 | .collect(); |
| 437 | roundtrip_with_encoder(FlightDataEncoderBuilder::default(), input, expected_output).await |
| 438 | } |
| 439 | |
| 440 | async fn roundtrip_with_encoder( |
| 441 | encoder: FlightDataEncoderBuilder, |
no test coverage detected