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

Method get_variable_field

datafusion/expr/src/planner.rs:126–129  ·  view source on GitHub ↗

Return metadata about a system/user-defined variable, if any. By default, this wraps [`Self::get_variable_type`] in an Arrow [`Field`] with nullable set to `true` and no metadata. Implementations that can provide richer information (such as nullability or extension metadata) should override this method.

(&self, variable_names: &[String])

Source from the content-addressed store, hash-verified

124 /// provide richer information (such as nullability or extension metadata)
125 /// should override this method.
126 fn get_variable_field(&self, variable_names: &[String]) -> Option<FieldRef> {
127 self.get_variable_type(variable_names)
128 .map(|data_type| data_type.into_nullable_field_ref())
129 }
130
131 /// Return overall configuration options
132 fn options(&self) -> &ConfigOptions;

Callers 2

Implementers 7

frontend.rsdatafusion-examples/examples/sql_ops/f
mod.rsdatafusion/sql/src/expr/mod.rs
mod.rsdatafusion/sql/tests/common/mod.rs
sql.rsdatafusion/sql/examples/sql.rs
session_state.rsdatafusion/core/src/execution/session_
mod.rsdatafusion/core/tests/optimizer/mod.rs
optimizer_integration.rsdatafusion/optimizer/tests/optimizer_i

Calls 3

mapMethod · 0.45
get_variable_typeMethod · 0.45

Tested by

no test coverage detected