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 50ff1a4 commit 29bca8fCopy full SHA for 29bca8f
query/tests/integration.rs
@@ -20,7 +20,6 @@ use datafusion_udf_wasm_query::{
20
use tokio::runtime::Handle;
21
22
mod integration_tests;
23
-use datafusion_expr::async_udf::AsyncScalarUDF;
24
25
use crate::integration_tests::python::test_utils::python_component;
26
@@ -33,8 +32,7 @@ impl UdfQueryInvocator {
33
32
parsed_query: ParsedQuery,
34
) -> DataFusionResult<DataFrame> {
35
for udf in parsed_query.udfs {
36
- let scalar_udf = AsyncScalarUDF::new(udf);
37
- ctx.register_udf(scalar_udf.into());
+ ctx.register_udf(udf.as_async_udf().into());
38
}
39
40
ctx.sql(&parsed_query.sql).await
0 commit comments