|
18 | 18 | pub(crate) mod partitioning; |
19 | 19 | pub(crate) mod sort; |
20 | 20 |
|
21 | | -use std::{ |
22 | | - any::Any, |
23 | | - ffi::c_void, |
24 | | - fmt::{Display, Formatter}, |
25 | | - hash::{DefaultHasher, Hash, Hasher}, |
26 | | - sync::Arc, |
27 | | -}; |
28 | | - |
29 | | -use abi_stable::{ |
30 | | - StableAbi, |
31 | | - std_types::{ROption, RResult, RString, RVec}, |
32 | | -}; |
33 | | -use arrow::{ |
34 | | - array::{ArrayRef, BooleanArray, RecordBatch}, |
35 | | - datatypes::SchemaRef, |
36 | | -}; |
37 | | -use arrow_schema::{DataType, Field, FieldRef, Schema, ffi::FFI_ArrowSchema}; |
| 21 | +use std::any::Any; |
| 22 | +use std::ffi::c_void; |
| 23 | +use std::fmt::{Display, Formatter}; |
| 24 | +use std::hash::{DefaultHasher, Hash, Hasher}; |
| 25 | +use std::sync::Arc; |
| 26 | + |
| 27 | +use abi_stable::StableAbi; |
| 28 | +use abi_stable::std_types::{ROption, RResult, RString, RVec}; |
| 29 | +use arrow::array::{ArrayRef, BooleanArray, RecordBatch}; |
| 30 | +use arrow::datatypes::SchemaRef; |
| 31 | +use arrow_schema::ffi::FFI_ArrowSchema; |
| 32 | +use arrow_schema::{DataType, Field, FieldRef, Schema}; |
38 | 33 | use datafusion_common::{Result, ffi_datafusion_err}; |
39 | | -use datafusion_expr::{ |
40 | | - ColumnarValue, interval_arithmetic::Interval, sort_properties::ExprProperties, |
41 | | - statistics::Distribution, |
42 | | -}; |
| 34 | +use datafusion_expr::ColumnarValue; |
| 35 | +use datafusion_expr::interval_arithmetic::Interval; |
| 36 | +use datafusion_expr::sort_properties::ExprProperties; |
| 37 | +use datafusion_expr::statistics::Distribution; |
43 | 38 | use datafusion_physical_expr::PhysicalExpr; |
44 | 39 | use datafusion_physical_expr_common::physical_expr::fmt_sql; |
45 | 40 |
|
46 | | -use crate::{ |
47 | | - arrow_wrappers::{WrappedArray, WrappedSchema}, |
48 | | - df_result, |
49 | | - expr::{ |
50 | | - columnar_value::FFI_ColumnarValue, distribution::FFI_Distribution, |
51 | | - expr_properties::FFI_ExprProperties, interval::FFI_Interval, |
52 | | - }, |
53 | | - record_batch_stream::{record_batch_to_wrapped_array, wrapped_array_to_record_batch}, |
54 | | - rresult, rresult_return, |
55 | | - util::FFIResult, |
| 41 | +use crate::arrow_wrappers::{WrappedArray, WrappedSchema}; |
| 42 | +use crate::expr::columnar_value::FFI_ColumnarValue; |
| 43 | +use crate::expr::distribution::FFI_Distribution; |
| 44 | +use crate::expr::expr_properties::FFI_ExprProperties; |
| 45 | +use crate::expr::interval::FFI_Interval; |
| 46 | +use crate::record_batch_stream::{ |
| 47 | + record_batch_to_wrapped_array, wrapped_array_to_record_batch, |
56 | 48 | }; |
| 49 | +use crate::util::FFIResult; |
| 50 | +use crate::{df_result, rresult, rresult_return}; |
57 | 51 |
|
58 | 52 | #[repr(C)] |
59 | 53 | #[derive(Debug, StableAbi)] |
@@ -737,14 +731,14 @@ impl Display for ForeignPhysicalExpr { |
737 | 731 |
|
738 | 732 | #[cfg(test)] |
739 | 733 | mod tests { |
740 | | - use std::{ |
741 | | - hash::{DefaultHasher, Hash, Hasher}, |
742 | | - sync::Arc, |
743 | | - }; |
| 734 | + use std::hash::{DefaultHasher, Hash, Hasher}; |
| 735 | + use std::sync::Arc; |
744 | 736 |
|
745 | 737 | use arrow::array::{BooleanArray, RecordBatch, record_batch}; |
746 | | - use datafusion_common::{DataFusionError, ScalarValue, tree_node::DynTreeNode}; |
747 | | - use datafusion_expr::{interval_arithmetic::Interval, statistics::Distribution}; |
| 738 | + use datafusion_common::tree_node::DynTreeNode; |
| 739 | + use datafusion_common::{DataFusionError, ScalarValue}; |
| 740 | + use datafusion_expr::interval_arithmetic::Interval; |
| 741 | + use datafusion_expr::statistics::Distribution; |
748 | 742 | use datafusion_physical_expr::expressions::{Column, NegativeExpr, NotExpr}; |
749 | 743 | use datafusion_physical_expr_common::physical_expr::{PhysicalExpr, fmt_sql}; |
750 | 744 |
|
|
0 commit comments