17
17
18
18
//! [`SessionContext`] API for registering data sources and executing queries
19
19
20
- use datafusion_catalog:: memory:: MemorySchemaProvider ;
21
- use datafusion_catalog:: MemoryCatalogProvider ;
22
20
use std:: collections:: HashSet ;
23
21
use std:: fmt:: Debug ;
24
22
use std:: sync:: { Arc , Weak } ;
25
23
26
24
use super :: options:: ReadOptions ;
25
+ use crate :: datasource:: dynamic_file:: DynamicListTableFactory ;
26
+ use crate :: execution:: session_state:: SessionStateBuilder ;
27
27
use crate :: {
28
28
catalog:: listing_schema:: ListingSchemaProvider ,
29
29
catalog:: {
@@ -49,39 +49,40 @@ use crate::{
49
49
variable:: { VarProvider , VarType } ,
50
50
} ;
51
51
52
+ // backwards compatibility
53
+ pub use crate :: execution:: session_state:: SessionState ;
54
+
52
55
use arrow:: datatypes:: { Schema , SchemaRef } ;
53
56
use arrow:: record_batch:: RecordBatch ;
57
+ use datafusion_catalog:: memory:: MemorySchemaProvider ;
58
+ use datafusion_catalog:: MemoryCatalogProvider ;
59
+ use datafusion_catalog:: {
60
+ DynamicFileCatalog , TableFunction , TableFunctionImpl , UrlTableFactory ,
61
+ } ;
62
+ use datafusion_common:: config:: ConfigOptions ;
54
63
use datafusion_common:: {
55
64
config:: { ConfigExtension , TableOptions } ,
56
65
exec_datafusion_err, exec_err, not_impl_err, plan_datafusion_err, plan_err,
57
66
tree_node:: { TreeNodeRecursion , TreeNodeVisitor } ,
58
67
DFSchema , ParamValues , ScalarValue , SchemaReference , TableReference ,
59
68
} ;
69
+ pub use datafusion_execution:: config:: SessionConfig ;
60
70
use datafusion_execution:: registry:: SerializerRegistry ;
71
+ pub use datafusion_execution:: TaskContext ;
72
+ pub use datafusion_expr:: execution_props:: ExecutionProps ;
61
73
use datafusion_expr:: {
62
74
expr_rewriter:: FunctionRewrite ,
63
75
logical_plan:: { DdlStatement , Statement } ,
64
76
planner:: ExprPlanner ,
65
77
Expr , UserDefinedLogicalNode , WindowUDF ,
66
78
} ;
67
-
68
- // backwards compatibility
69
- pub use crate :: execution:: session_state:: SessionState ;
70
-
71
- use crate :: datasource:: dynamic_file:: DynamicListTableFactory ;
72
- use crate :: execution:: session_state:: SessionStateBuilder ;
73
- use async_trait:: async_trait;
74
- use chrono:: { DateTime , Utc } ;
75
- use datafusion_catalog:: {
76
- DynamicFileCatalog , SessionStore , TableFunction , TableFunctionImpl , UrlTableFactory ,
77
- } ;
78
- use datafusion_common:: config:: ConfigOptions ;
79
- pub use datafusion_execution:: config:: SessionConfig ;
80
- pub use datafusion_execution:: TaskContext ;
81
- pub use datafusion_expr:: execution_props:: ExecutionProps ;
82
79
use datafusion_optimizer:: analyzer:: type_coercion:: TypeCoercion ;
83
80
use datafusion_optimizer:: Analyzer ;
84
81
use datafusion_optimizer:: { AnalyzerRule , OptimizerRule } ;
82
+ use datafusion_session:: SessionStore ;
83
+
84
+ use async_trait:: async_trait;
85
+ use chrono:: { DateTime , Utc } ;
85
86
use object_store:: ObjectStore ;
86
87
use parking_lot:: RwLock ;
87
88
use url:: Url ;
0 commit comments