diff --git a/rust/arrow-flight/examples/server.rs b/rust/arrow-flight/examples/server.rs index b71ad78b3bb..6651e3919dd 100644 --- a/rust/arrow-flight/examples/server.rs +++ b/rust/arrow-flight/examples/server.rs @@ -46,6 +46,8 @@ impl FlightService for FlightServiceImpl { >; type ListActionsStream = Pin> + Send + Sync + 'static>>; + type DoExchangeStream = + Pin> + Send + Sync + 'static>>; async fn handshake( &self, @@ -102,6 +104,13 @@ impl FlightService for FlightServiceImpl { ) -> Result, Status> { Err(Status::unimplemented("Not yet implemented")) } + + async fn do_exchange( + &self, + _request: Request>, + ) -> Result, Status> { + Err(Status::unimplemented("Not yet implemented")) + } } #[tokio::main] diff --git a/rust/datafusion/examples/flight_server.rs b/rust/datafusion/examples/flight_server.rs index 30afa5d5377..b4592ba1c0d 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> + Send + Sync + 'static>>; + type DoExchangeStream = + Pin> + Send + Sync + 'static>>; async fn get_schema( &self, @@ -163,6 +165,13 @@ impl FlightService for FlightServiceImpl { ) -> Result, Status> { Err(Status::unimplemented("Not yet implemented")) } + + async fn do_exchange( + &self, + _request: Request>, + ) -> Result, Status> { + Err(Status::unimplemented("Not yet implemented")) + } } fn to_tonic_err(e: &datafusion::error::ExecutionError) -> Status {