@@ -22,27 +22,9 @@ use std::fmt::{self, Debug, Display, Formatter};
22
22
use std:: hash:: { Hash , Hasher } ;
23
23
use std:: sync:: Arc ;
24
24
25
- use super :: dml:: CopyTo ;
26
- use super :: DdlStatement ;
27
- use crate :: builder:: change_redundant_column;
28
- use crate :: expr:: {
29
- Alias , Exists , InSubquery , Placeholder , Sort as SortExpr , WindowFunction ,
30
- } ;
31
- use crate :: expr_rewriter:: { create_col_from_scalar_expr, normalize_cols} ;
32
- use crate :: logical_plan:: display:: { GraphvizVisitor , IndentVisitor } ;
33
- use crate :: logical_plan:: extension:: UserDefinedLogicalNode ;
34
- use crate :: logical_plan:: { DmlStatement , Statement } ;
35
- use crate :: utils:: {
36
- enumerate_grouping_sets, exprlist_to_fields, find_out_reference_exprs,
37
- grouping_set_expr_count, grouping_set_to_exprlist, split_conjunction,
38
- } ;
39
- use crate :: {
40
- build_join_schema, expr_vec_fmt, BinaryExpr , BuiltInWindowFunction ,
41
- CreateMemoryTable , CreateView , Expr , ExprSchemable , LogicalPlanBuilder , Operator ,
42
- TableProviderFilterPushDown , TableSource , WindowFunctionDefinition ,
43
- } ;
44
-
45
25
use arrow:: datatypes:: { DataType , Field , Schema , SchemaRef } ;
26
+
27
+ pub use datafusion_common:: display:: { PlanType , StringifiedPlan , ToStringifiedPlan } ;
46
28
use datafusion_common:: tree_node:: {
47
29
Transformed , TransformedResult , TreeNode , TreeNodeIterator , TreeNodeRecursion ,
48
30
TreeNodeRewriter , TreeNodeVisitor ,
@@ -53,12 +35,31 @@ use datafusion_common::{
53
35
FunctionalDependence , FunctionalDependencies , ParamValues , Result , TableReference ,
54
36
UnnestOptions ,
55
37
} ;
38
+ pub use datafusion_common:: { JoinConstraint , JoinType } ;
56
39
40
+ use crate :: builder:: change_redundant_column;
41
+ use crate :: {
42
+ build_join_schema, expr_vec_fmt, BinaryExpr , BuiltInWindowFunction ,
43
+ CreateMemoryTable , CreateView , Expr , ExprSchemable , LogicalPlanBuilder , Operator ,
44
+ TableProviderFilterPushDown , TableSource , WindowFunctionDefinition ,
45
+ } ;
57
46
// backwards compatibility
58
47
use crate :: display:: PgJsonVisitor ;
48
+ use crate :: expr:: {
49
+ Alias , Exists , InSubquery , Placeholder , Sort as SortExpr , WindowFunction ,
50
+ } ;
51
+ use crate :: expr_rewriter:: { create_col_from_scalar_expr, normalize_cols} ;
52
+ use crate :: logical_plan:: display:: { GraphvizVisitor , IndentVisitor } ;
53
+ use crate :: logical_plan:: extension:: UserDefinedLogicalNode ;
54
+ use crate :: logical_plan:: { DmlStatement , Statement } ;
59
55
use crate :: tree_node:: transform_option_vec;
60
- pub use datafusion_common:: display:: { PlanType , StringifiedPlan , ToStringifiedPlan } ;
61
- pub use datafusion_common:: { JoinConstraint , JoinType } ;
56
+ use crate :: utils:: {
57
+ enumerate_grouping_sets, exprlist_to_fields, find_out_reference_exprs,
58
+ grouping_set_expr_count, grouping_set_to_exprlist, split_conjunction,
59
+ } ;
60
+
61
+ use super :: dml:: CopyTo ;
62
+ use super :: DdlStatement ;
62
63
63
64
/// A LogicalPlan represents the different types of relational
64
65
/// operators (such as Projection, Filter, etc) and can be created by
@@ -3039,17 +3040,19 @@ pub struct Unnest {
3039
3040
mod tests {
3040
3041
use std:: sync:: Arc ;
3041
3042
3042
- use super :: * ;
3043
- use crate :: builder:: LogicalTableSource ;
3044
- use crate :: logical_plan:: table_scan;
3045
- use crate :: { col, count, exists, in_subquery, lit, placeholder, GroupingSet } ;
3046
-
3047
3043
use arrow:: datatypes:: { DataType , Field , Schema } ;
3044
+
3048
3045
use datafusion_common:: tree_node:: TreeNodeVisitor ;
3049
3046
use datafusion_common:: {
3050
3047
not_impl_err, Constraint , DFSchema , ScalarValue , TableReference ,
3051
3048
} ;
3052
3049
3050
+ use crate :: builder:: LogicalTableSource ;
3051
+ use crate :: logical_plan:: table_scan;
3052
+ use crate :: { col, count, exists, in_subquery, lit, placeholder, GroupingSet } ;
3053
+
3054
+ use super :: * ;
3055
+
3053
3056
fn employee_schema ( ) -> Schema {
3054
3057
Schema :: new ( vec ! [
3055
3058
Field :: new( "id" , DataType :: Int32 , false ) ,
0 commit comments