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

Function check_async_udf

datafusion/physical-expr/src/expressions/lambda.rs:221–233  ·  view source on GitHub ↗
(body: &Arc<dyn PhysicalExpr>)

Source from the content-addressed store, hash-verified

219}
220
221fn check_async_udf(body: &Arc<dyn PhysicalExpr>) -> Result<()> {
222 if body.exists(|expr| {
223 Ok(expr
224 .downcast_ref::<ScalarFunctionExpr>()
225 .is_some_and(|udf| udf.fun().as_async().is_some()))
226 })? {
227 return plan_err!(
228 "Async functions in lambdas aren't supported, see https://github.com/apache/datafusion/issues/22091"
229 );
230 }
231
232 Ok(())
233}
234
235#[cfg(test)]
236mod tests {

Callers 2

try_newMethod · 0.85
with_new_childrenMethod · 0.85

Calls 3

existsMethod · 0.80
as_asyncMethod · 0.80
funMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…