|
1 | 1 | use super::service::StageKey; |
2 | 2 | use crate::config_extension_ext::ContextGrpcMetadata; |
3 | 3 | use crate::errors::datafusion_error_to_tonic_status; |
4 | | -use crate::execution_plans::{DistributedCodec, PartitionGroup}; |
| 4 | +use crate::execution_plans::PartitionGroup; |
5 | 5 | use crate::flight_service::service::ArrowFlightEndpoint; |
6 | 6 | use crate::flight_service::session_builder::DistributedSessionBuilderContext; |
7 | | -use crate::stage::{stage_from_proto, ExecutionStage, ExecutionStageProto}; |
| 7 | +use crate::protobuf::{stage_from_proto, DistributedCodec, ExecutionStageProto}; |
| 8 | +use crate::stage::ExecutionStage; |
8 | 9 | use arrow_flight::encode::FlightDataEncoderBuilder; |
9 | 10 | use arrow_flight::error::FlightError; |
10 | 11 | use arrow_flight::flight_service_server::FlightService; |
@@ -169,16 +170,15 @@ impl ArrowFlightEndpoint { |
169 | 170 | #[cfg(test)] |
170 | 171 | mod tests { |
171 | 172 | use super::*; |
| 173 | + use crate::flight_service::session_builder::DefaultSessionBuilder; |
| 174 | + use crate::stage::ExecutionTask; |
| 175 | + use arrow_flight::Ticket; |
| 176 | + use prost::{bytes::Bytes, Message}; |
| 177 | + use tonic::Request; |
172 | 178 | use uuid::Uuid; |
173 | 179 |
|
174 | 180 | #[tokio::test] |
175 | 181 | async fn test_task_data_partition_counting() { |
176 | | - use crate::flight_service::session_builder::DefaultSessionBuilder; |
177 | | - use crate::task::ExecutionTask; |
178 | | - use arrow_flight::Ticket; |
179 | | - use prost::{bytes::Bytes, Message}; |
180 | | - use tonic::Request; |
181 | | - |
182 | 182 | // Create ArrowFlightEndpoint with DefaultSessionBuilder |
183 | 183 | let endpoint = |
184 | 184 | ArrowFlightEndpoint::try_new(DefaultSessionBuilder).expect("Failed to create endpoint"); |
|
0 commit comments