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

Method register_variable

datafusion/core/src/execution/context/mod.rs:1590–1599  ·  view source on GitHub ↗

Registers a variable provider within this context.

(
        &self,
        variable_type: VarType,
        provider: Arc<dyn VarProvider + Send + Sync>,
    )

Source from the content-addressed store, hash-verified

1588
1589 /// Registers a variable provider within this context.
1590 pub fn register_variable(
1591 &self,
1592 variable_type: VarType,
1593 provider: Arc<dyn VarProvider + Send + Sync>,
1594 ) {
1595 self.state
1596 .write()
1597 .execution_props_mut()
1598 .add_var_provider(variable_type, provider);
1599 }
1600
1601 /// Register a table UDF with this context
1602 pub fn register_udtf(&self, name: &str, fun: Arc<dyn TableFunctionImpl>) {

Callers 2

create_variable_exprFunction · 0.80
use_var_providerFunction · 0.80

Calls 3

add_var_providerMethod · 0.80
execution_props_mutMethod · 0.80
writeMethod · 0.45

Tested by 1

use_var_providerFunction · 0.64