@@ -3,18 +3,18 @@ use crate::errors::datafusion_error_to_tonic_status;
33use crate :: execution_plans:: { PartitionGroup , StageExec } ;
44use crate :: flight_service:: service:: ArrowFlightEndpoint ;
55use crate :: flight_service:: session_builder:: DistributedSessionBuilderContext ;
6- use crate :: protobuf:: { stage_from_proto, DistributedCodec , StageExecProto , StageKey } ;
6+ use crate :: protobuf:: { DistributedCodec , StageExecProto , StageKey , stage_from_proto} ;
7+ use arrow_flight:: Ticket ;
78use arrow_flight:: encode:: FlightDataEncoderBuilder ;
89use arrow_flight:: error:: FlightError ;
910use arrow_flight:: flight_service_server:: FlightService ;
10- use arrow_flight:: Ticket ;
1111use datafusion:: execution:: { SendableRecordBatchStream , SessionState } ;
1212use futures:: TryStreamExt ;
1313use http:: HeaderMap ;
1414use prost:: Message ;
1515use std:: fmt:: Display ;
16- use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
1716use std:: sync:: Arc ;
17+ use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
1818use tokio:: sync:: OnceCell ;
1919use tonic:: { Request , Response , Status } ;
2020
@@ -172,17 +172,17 @@ fn record_batch_stream_to_response(
172172#[ cfg( test) ]
173173mod tests {
174174 use super :: * ;
175+ use crate :: ExecutionTask ;
175176 use crate :: flight_service:: session_builder:: DefaultSessionBuilder ;
176177 use crate :: protobuf:: proto_from_stage;
177- use crate :: ExecutionTask ;
178178 use arrow:: datatypes:: { Schema , SchemaRef } ;
179179 use arrow_flight:: Ticket ;
180180 use datafusion:: physical_expr:: Partitioning ;
181+ use datafusion:: physical_plan:: ExecutionPlan ;
181182 use datafusion:: physical_plan:: empty:: EmptyExec ;
182183 use datafusion:: physical_plan:: repartition:: RepartitionExec ;
183- use datafusion:: physical_plan:: ExecutionPlan ;
184184 use datafusion_proto:: physical_plan:: DefaultPhysicalExtensionCodec ;
185- use prost:: { bytes:: Bytes , Message } ;
185+ use prost:: { Message , bytes:: Bytes } ;
186186 use tonic:: Request ;
187187 use uuid:: Uuid ;
188188
0 commit comments