Skip to main content

extract_subqueries

Function extract_subqueries 

Source
pub fn extract_subqueries(
    expr: &Expr,
    catalog: &dyn SqlCatalog,
    functions: &FunctionRegistry,
) -> Result<SubqueryExtraction>
Expand description

Extract IN (SELECT ...) and NOT IN (SELECT ...) patterns from a WHERE clause.

Returns the extracted subquery joins and the remaining WHERE expression (with subquery predicates removed). If the entire WHERE is a single subquery predicate, remaining_where is None.