Skip to content

Apache DataFusion SQL Query Engine

ARROW-8308: [Rust] Implement DoExchange on examples

Neville Dipaleb7ea4d6df365
diff --git a/rust/datafusion/examples/flight_server.rs b/rust/datafusion/examples/flight_server.rs
index 30afa5d537..b4592ba1c0 100644
--- a/rust/datafusion/examples/flight_server.rs
+++ b/rust/datafusion/examples/flight_server.rs
@@ -54,6 +54,8 @@ impl FlightService for FlightServiceImpl {
>;
type ListActionsStream =
Pin<Box<dyn Stream<Item = Result<ActionType, Status>> + Send + Sync + 'static>>;
+ type DoExchangeStream =
+ Pin<Box<dyn Stream<Item = Result<FlightData, Status>> + Send + Sync + 'static>>;
async fn get_schema(
&self,
@@ -163,6 +165,13 @@ impl FlightService for FlightServiceImpl {
) -> Result<Response<Self::ListActionsStream>, Status> {
Err(Status::unimplemented("Not yet implemented"))
}
+
+ async fn do_exchange(
+ &self,
+ _request: Request<Streaming<FlightData>>,
+ ) -> Result<Response<Self::DoExchangeStream>, Status> {
+ Err(Status::unimplemented("Not yet implemented"))
+ }
}
fn to_tonic_err(e: &datafusion::error::ExecutionError) -> Status {