Skip to content

Apache DataFusion SQL Query Engine

ARROW-9981: [Rust] [Flight] Expose IpcWriteOptions on utils

Neville Dipale6f2ad7894c38
diff --git a/rust/datafusion/examples/flight_client.rs b/rust/datafusion/examples/flight_client.rs
index f33714f553..3bc2a04a49 100644
--- a/rust/datafusion/examples/flight_client.rs
+++ b/rust/datafusion/examples/flight_client.rs
@@ -23,7 +23,7 @@ use arrow::util::pretty;
use arrow_flight::flight_descriptor;
use arrow_flight::flight_service_client::FlightServiceClient;
-use arrow_flight::utils::flight_data_to_batch;
+use arrow_flight::utils::flight_data_to_arrow_batch;
use arrow_flight::{FlightDescriptor, Ticket};
#[tokio::main]
@@ -62,7 +62,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut results = vec![];
while let Some(flight_data) = stream.message().await? {
// the unwrap is infallible and thus safe
- let record_batch = flight_data_to_batch(&flight_data, schema.clone())?.unwrap();
+ let record_batch =
+ flight_data_to_arrow_batch(&flight_data, schema.clone())?.unwrap();
results.push(record_batch);
}