File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ impl FlightService for FlightServiceImpl {
4646 > ;
4747 type ListActionsStream =
4848 Pin < Box < dyn Stream < Item = Result < ActionType , Status > > + Send + Sync + ' static > > ;
49+ type DoExchangeStream =
50+ Pin < Box < dyn Stream < Item = Result < FlightData , Status > > + Send + Sync + ' static > > ;
4951
5052 async fn handshake (
5153 & self ,
@@ -102,6 +104,13 @@ impl FlightService for FlightServiceImpl {
102104 ) -> Result < Response < Self :: ListActionsStream > , Status > {
103105 Err ( Status :: unimplemented ( "Not yet implemented" ) )
104106 }
107+
108+ async fn do_exchange (
109+ & self ,
110+ _request : Request < Streaming < FlightData > > ,
111+ ) -> Result < Response < Self :: DoExchangeStream > , Status > {
112+ Err ( Status :: unimplemented ( "Not yet implemented" ) )
113+ }
105114}
106115
107116#[ tokio:: main]
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ impl FlightService for FlightServiceImpl {
5454 > ;
5555 type ListActionsStream =
5656 Pin < Box < dyn Stream < Item = Result < ActionType , Status > > + Send + Sync + ' static > > ;
57+ type DoExchangeStream =
58+ Pin < Box < dyn Stream < Item = Result < FlightData , Status > > + Send + Sync + ' static > > ;
5759
5860 async fn get_schema (
5961 & self ,
@@ -163,6 +165,13 @@ impl FlightService for FlightServiceImpl {
163165 ) -> Result < Response < Self :: ListActionsStream > , Status > {
164166 Err ( Status :: unimplemented ( "Not yet implemented" ) )
165167 }
168+
169+ async fn do_exchange (
170+ & self ,
171+ _request : Request < Streaming < FlightData > > ,
172+ ) -> Result < Response < Self :: DoExchangeStream > , Status > {
173+ Err ( Status :: unimplemented ( "Not yet implemented" ) )
174+ }
166175}
167176
168177fn to_tonic_err ( e : & datafusion:: error:: ExecutionError ) -> Status {
You can’t perform that action at this time.
0 commit comments