Skip to main content

Module pattern_exists

Module pattern_exists 

Source
Expand description

Vectorized EXISTS evaluation for pattern predicates in WHERE clauses.

When a WHERE clause contains a bare pattern predicate like (m)-[:SENT_BY]->(:Participant {name: $ename}), the parser wraps it in Expr::Exists { from_pattern_predicate: true }. Instead of running a full plan-and-execute cycle per row (the generic ExistsExecExpr path), this module evaluates the pattern using batch CSR neighbor lookups — the same approach used by PatternComprehensionExecExpr.

Returns a BooleanArray where each element indicates whether at least one matching path exists for that row’s anchor node.

Structs§

PatternExistsExecExpr
Vectorized EXISTS expression for simple pattern predicates.
PropertyPredicate
A property equality predicate extracted from a node pattern’s property map.

Functions§

extract_pattern_from_exists_query
Extracts the Pattern from a pattern-predicate Query.
extract_target_property_predicates
Extracts property predicates from target nodes in the pattern.