MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / from

Method from

src/adapter/src/optimize.rs:301–310  ·  view source on GitHub ↗
(vars: &SystemVars)

Source from the content-addressed store, hash-verified

299
300impl From<&SystemVars> for OptimizerConfig {
301 fn from(vars: &SystemVars) -> Self {
302 Self {
303 mode: OptimizeMode::Execute,
304 replan: None,
305 no_fast_path: false,
306 persist_fast_path_order: PERSIST_FAST_PATH_ORDER.get(vars.dyncfgs()),
307 subscribe_snapshot_optimization: SUBSCRIBE_SNAPSHOT_OPTIMIZATION.get(vars.dyncfgs()),
308 features: OptimizerFeatures::from(vars),
309 }
310 }
311}
312
313/// Override [`OptimizerConfig::features`] from [`OptimizerFeatureOverrides`].

Callers

nothing calls this directly

Calls 4

EvalErrorEnum · 0.85
getMethod · 0.45
dyncfgsMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected