(body: &Arc<dyn PhysicalExpr>)
| 219 | } |
| 220 | |
| 221 | fn 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)] |
| 236 | mod tests { |
no test coverage detected
searching dependent graphs…