Expand description
Shared AST manipulation helpers for DML planners.
Functionsยง
- flatten_
and_ expr - Flatten a right-leaning AND expression tree into a list of conjuncts.
- qualified_
ident_ pair - Return
(table, column)for atable.colcompound identifier, orNone. - rebuild_
and_ expr - Reassemble conjuncts into a right-leaning AND tree. Panics if empty.
- strip_
and_ convert_ filters - Strip
qualifier.from all compound identifiers inexpr, then convert the result toVec<Filter>viaconvert_where_to_filters. - strip_
table_ qualifier - Walk an expression and replace every
table.colcompound identifier wheretable == qualifierwith a barecolidentifier. Lets target-side predicates liket.score > 15be evaluated against documents that store fields without a table qualifier.