1+ use crate :: ChannelResolver ;
12use crate :: channel_resolver_ext:: get_distributed_channel_resolver;
23use crate :: config_extension_ext:: ContextGrpcMetadata ;
34use crate :: errors:: { map_flight_to_datafusion_error, map_status_to_datafusion_error} ;
45use crate :: execution_plans:: StageExec ;
56use crate :: flight_service:: DoGet ;
67use crate :: metrics:: proto:: MetricsSetProto ;
7- use crate :: protobuf:: { proto_from_stage , DistributedCodec , StageKey } ;
8- use crate :: ChannelResolver ;
8+ use crate :: protobuf:: { DistributedCodec , StageKey , proto_from_stage } ;
9+ use arrow_flight :: Ticket ;
910use arrow_flight:: decode:: FlightRecordBatchStream ;
1011use arrow_flight:: error:: FlightError ;
1112use arrow_flight:: flight_service_client:: FlightServiceClient ;
12- use arrow_flight:: Ticket ;
1313use dashmap:: DashMap ;
1414use datafusion:: arrow:: datatypes:: SchemaRef ;
1515use datafusion:: common:: { exec_err, internal_datafusion_err, internal_err, plan_err} ;
@@ -27,8 +27,8 @@ use prost::Message;
2727use std:: any:: Any ;
2828use std:: fmt:: Formatter ;
2929use std:: sync:: Arc ;
30- use tonic:: metadata:: MetadataMap ;
3130use tonic:: Request ;
31+ use tonic:: metadata:: MetadataMap ;
3232
3333/// This node has two variants.
3434/// 1. Pending: it acts as a placeholder for the distributed optimization step to mark it as ready.
@@ -158,7 +158,9 @@ impl ExecutionPlan for ArrowFlightReadExec {
158158 context : Arc < TaskContext > ,
159159 ) -> Result < SendableRecordBatchStream , DataFusionError > {
160160 let ArrowFlightReadExec :: Ready ( self_ready) = self else {
161- return exec_err ! ( "ArrowFlightReadExec is not ready, was the distributed optimization step performed?" ) ;
161+ return exec_err ! (
162+ "ArrowFlightReadExec is not ready, was the distributed optimization step performed?"
163+ ) ;
162164 } ;
163165
164166 // get the channel manager and current stage from our context
0 commit comments