Create an IN subquery expression
(expr: Expr, subquery: Arc<LogicalPlan>)
| 275 | |
| 276 | /// Create an IN subquery expression |
| 277 | pub fn in_subquery(expr: Expr, subquery: Arc<LogicalPlan>) -> Expr { |
| 278 | let outer_ref_columns = subquery.all_out_ref_exprs(); |
| 279 | Expr::InSubquery(InSubquery::new( |
| 280 | Box::new(expr), |
| 281 | Subquery { |
| 282 | subquery, |
| 283 | outer_ref_columns, |
| 284 | spans: Spans::new(), |
| 285 | }, |
| 286 | false, |
| 287 | )) |
| 288 | } |
| 289 | |
| 290 | /// Create a NOT IN subquery expression |
| 291 | pub fn not_in_subquery(expr: Expr, subquery: Arc<LogicalPlan>) -> Expr { |
searching dependent graphs…