Create a new lambda expression with the given parameters and body
(params: Vec<String>, body: Arc<dyn PhysicalExpr>)
| 62 | impl LambdaExpr { |
| 63 | /// Create a new lambda expression with the given parameters and body |
| 64 | pub fn try_new(params: Vec<String>, body: Arc<dyn PhysicalExpr>) -> Result<Self> { |
| 65 | if !all_unique(¶ms) { |
| 66 | return plan_err!( |
| 67 | "lambda params must be unique, got ({})", |
| 68 | params.join(", ") |
| 69 | ); |
| 70 | } |
| 71 | |
| 72 | check_async_udf(&body)?; |
| 73 | |
| 74 | Ok(Self::new(params, body)) |
| 75 | } |
| 76 | |
| 77 | fn new(params: Vec<String>, body: Arc<dyn PhysicalExpr>) -> Self { |
| 78 | let mut used_column_indices = HashSet::new(); |
nothing calls this directly
no test coverage detected