8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7332842 commit 0f048adCopy full SHA for 0f048ad
src/context.rs
@@ -34,6 +34,7 @@ use crate::catalog::{PyCatalog, PyTable};
34
use crate::dataframe::PyDataFrame;
35
use crate::dataset::Dataset;
36
use crate::errors::DataFusionError;
37
+use crate::udaf::PyAggregateUDF;
38
use crate::udf::PyScalarUDF;
39
use crate::utils::wait_for_future;
40
@@ -227,6 +228,11 @@ impl PySessionContext {
227
228
Ok(())
229
}
230
231
+ fn register_udaf(&mut self, udaf: PyAggregateUDF) -> PyResult<()> {
232
+ self.ctx.register_udaf(udaf.function);
233
+ Ok(())
234
+ }
235
+
236
#[args(name = "\"datafusion\"")]
237
fn catalog(&self, name: &str) -> PyResult<PyCatalog> {
238
match self.ctx.catalog(name) {
0 commit comments