MCPcopy Create free account
hub / github.com/apache/datafusion / new

Method new

datafusion/core/src/execution/session_state.rs:1065–1099  ·  view source on GitHub ↗

Returns a new empty [`SessionStateBuilder`]. See [`Self::with_default_features`] to install the default set of functions, catalogs, etc. To create a `SessionStateBuilder` with default features such as functions, please see [`Self::new_with_default_features`].

()

Source from the content-addressed store, hash-verified

1063 /// To create a `SessionStateBuilder` with default features such as functions,
1064 /// please see [`Self::new_with_default_features`].
1065 pub fn new() -> Self {
1066 Self {
1067 session_id: None,
1068 analyzer: None,
1069 expr_planners: None,
1070 #[cfg(feature = "sql")]
1071 relation_planners: None,
1072 #[cfg(feature = "sql")]
1073 type_planner: None,
1074 optimizer: None,
1075 physical_optimizers: None,
1076 query_planner: None,
1077 catalog_list: None,
1078 table_functions: None,
1079 scalar_functions: None,
1080 higher_order_functions: None,
1081 aggregate_functions: None,
1082 window_functions: None,
1083 extension_types: None,
1084 serializer_registry: None,
1085 file_formats: None,
1086 table_options: None,
1087 config: None,
1088 execution_props: None,
1089 table_factories: None,
1090 runtime_env: None,
1091 function_factory: None,
1092 cache_factory: None,
1093 statistics_registry: None,
1094 // fields to support convenience functions
1095 analyzer_rules: None,
1096 optimizer_rules: None,
1097 physical_optimizer_rules: None,
1098 }
1099 }
1100
1101 /// Returns a new [SessionStateBuilder] based on an existing [SessionState].
1102 ///

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
with_default_featuresMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected