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

Method from

datafusion/session/src/session.rs:154–166  ·  view source on GitHub ↗
(state: &dyn Session)

Source from the content-addressed store, hash-verified

152/// Create a new task context instance from Session
153impl From<&dyn Session> for TaskContext {
154 fn from(state: &dyn Session) -> Self {
155 let task_id = None;
156 TaskContext::new(
157 task_id,
158 state.session_id().to_string(),
159 state.config().clone(),
160 state.scalar_functions().clone(),
161 state.higher_order_functions().clone(),
162 state.aggregate_functions().clone(),
163 state.window_functions().clone(),
164 Arc::clone(state.runtime_env()),
165 )
166 }
167}
168type SessionRefLock = Arc<Mutex<Option<Weak<RwLock<dyn Session>>>>>;
169/// The state store that stores the reference of the runtime session state.

Callers

nothing calls this directly

Calls 10

newFunction · 0.85
to_stringMethod · 0.45
session_idMethod · 0.45
cloneMethod · 0.45
configMethod · 0.45
scalar_functionsMethod · 0.45
aggregate_functionsMethod · 0.45
window_functionsMethod · 0.45
runtime_envMethod · 0.45

Tested by

no test coverage detected