File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
datafusion/core/src/execution Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -1035,17 +1035,15 @@ impl SessionStateBuilder {
1035
1035
}
1036
1036
}
1037
1037
1038
- /// Set defaults for table_factories, file formats, expr_planners and builtin
1039
- /// scalar and aggregate functions.
1040
- pub fn with_default_features ( mut self ) -> Self {
1041
- self . table_factories = Some ( SessionStateDefaults :: default_table_factories ( ) ) ;
1042
- self . file_formats = Some ( SessionStateDefaults :: default_file_formats ( ) ) ;
1043
- self . expr_planners = Some ( SessionStateDefaults :: default_expr_planners ( ) ) ;
1044
- self . scalar_functions = Some ( SessionStateDefaults :: default_scalar_functions ( ) ) ;
1045
- self . aggregate_functions =
1046
- Some ( SessionStateDefaults :: default_aggregate_functions ( ) ) ;
1047
- self . window_functions = Some ( SessionStateDefaults :: default_window_functions ( ) ) ;
1048
- self
1038
+ /// Create default builder with defaults for table_factories, file formats, expr_planners and builtin
1039
+ /// scalar, aggregate and windows functions.
1040
+ pub fn with_default_features ( self ) -> Self {
1041
+ self . with_table_factories ( SessionStateDefaults :: default_table_factories ( ) )
1042
+ . with_file_formats ( SessionStateDefaults :: default_file_formats ( ) )
1043
+ . with_expr_planners ( SessionStateDefaults :: default_expr_planners ( ) )
1044
+ . with_scalar_functions ( SessionStateDefaults :: default_scalar_functions ( ) )
1045
+ . with_aggregate_functions ( SessionStateDefaults :: default_aggregate_functions ( ) )
1046
+ . with_window_functions ( SessionStateDefaults :: default_window_functions ( ) )
1049
1047
}
1050
1048
1051
1049
/// Set the session id.
You can’t perform that action at this time.
0 commit comments