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

Method register_udf

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

Registers a scalar UDF within this context. Note in SQL queries, function names are looked up using lowercase unless the query uses quotes. For example, - `SELECT MY_FUNC(x)...` will look for a function named `"my_func"` - `SELECT "my_FUNC"(x)` will look for a function named `"my_FUNC"` Any functions registered with the udf name or its aliases will be overwritten with this new function

(&self, f: ScalarUDF)

Source from the content-addressed store, hash-verified

1613 ///
1614 /// Any functions registered with the udf name or its aliases will be overwritten with this new function
1615 pub fn register_udf(&self, f: ScalarUDF) {
1616 let mut state = self.state.write();
1617 state.register_udf(Arc::new(f)).ok();
1618 }
1619
1620 /// Registers a higher-order function within this context.
1621 ///

Callers 15

async_udfFunction · 0.45
simple_udfFunction · 0.45
advanced_udfFunction · 0.45
json_shreddingFunction · 0.45
register_allFunction · 0.45
roundtrip_scalar_udfFunction · 0.45
roundtrip_scalar_udfFunction · 0.45
context_with_udfFunction · 0.45
register_allFunction · 0.45
set_variableMethod · 0.45
reset_variableMethod · 0.45

Calls 2

newFunction · 0.85
writeMethod · 0.45