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

Method try_from

datafusion/ffi/src/session/config.rs:132–140  ·  view source on GitHub ↗
(config: &FFI_SessionConfig)

Source from the content-addressed store, hash-verified

130 type Error = DataFusionError;
131
132 fn try_from(config: &FFI_SessionConfig) -> Result<Self, Self::Error> {
133 if (config.library_marker_id)() == crate::get_library_marker_id() {
134 return Ok(config.inner().clone());
135 }
136
137 let config_options = ConfigOptions::try_from(config.config_options.clone())?;
138
139 Ok(SessionConfig::from(config_options))
140 }
141}
142
143#[cfg(test)]

Callers

nothing calls this directly

Calls 3

get_library_marker_idFunction · 0.85
cloneMethod · 0.45
innerMethod · 0.45

Tested by

no test coverage detected