Skip to main content

Module pattern_comprehension

Module pattern_comprehension 

Source
Expand description

Vectorized pattern comprehension for Cypher [(a)-[:REL]->(b) WHERE pred | expr].

Implements a PhysicalExpr that:

  1. Extracts anchor VIDs from the input batch
  2. Expands neighbors via CSR adjacency (synchronous)
  3. Materializes needed properties via block_in_place
  4. Applies optional predicate filter
  5. Evaluates the map expression
  6. Reconstructs a LargeList column grouped by parent row

Structs§

PatternComprehensionExecExpr
Physical expression for Cypher Pattern Comprehension: [(a)-[:REL]->(b) WHERE pred | expr]
TraversalStep
A single hop derived from the pattern’s elements.

Functions§

analyze_pattern
Analyze a pattern to extract the anchor column and traversal steps.
build_inner_schema
Build the inner schema for the expanded batch.
collect_inner_properties
Collect property references from expressions that refer to inner variables.