Expand description
Distributed pattern matching โ cross-shard scatter-gather for MATCH.
When a MATCH pattern encounters a ghost edge (destination on another shard), the partial binding row is sent to the target shard for continuation. The target shard resumes pattern expansion from the ghost destination node.
Protocol:
- Coordinator broadcasts MATCH query to all shards.
- Each shard executes the pattern locally on its CSR.
- When a triple crosses a shard boundary (ghost edge):
- The shard packages the partial binding row + remaining pattern triples.
- Sends a
PatternContinuationto the target shard.
- Target shard resumes execution with the partial bindings.
- Results from all shards are merged by the coordinator.
- Iterate until no new continuations are pending.
Structsยง
- Distributed
Match Coordinator - Coordinator state for distributed MATCH execution.
- Pattern
Continuation - A partial MATCH result that needs continuation on another shard.
- Shard
Match Result - Coordinator response from a shard for distributed MATCH.