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)
| 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 | /// |