fix: optimized traversal bindings and directionless traversals w/ correlations BED-8320#98
fix: optimized traversal bindings and directionless traversals w/ correlations BED-8320#98seanjSO wants to merge 5 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
WalkthroughAdds SQL translation support for undirected (directionless) Cypher relationship patterns in the PostgreSQL translator. A new ChangesDirectionless Traversal Translation
Sequence Diagram(s)sequenceDiagram
participant Predicate as buildPatternPredicates
participant TraversalRoot as buildTraversalPatternRootWithOuterCorrelation
participant DirlessRoot as buildDirectionlessTraversalPatternRootWithOuterCorrelation
participant Strategy as DirlessStrategy
Predicate->>TraversalRoot: LeftNodeBound || RightNodeBound (any direction)
TraversalRoot->>DirlessRoot: DirectionBoth → delegate
DirlessRoot->>Strategy: dispatch(UseExpandInto / BothBound / SingleBound / Unbound)
Strategy-->>DirlessRoot: edge JOIN node (OR direction constraint)
DirlessRoot-->>TraversalRoot: EXISTS subquery with pairwise OR whereClause
TraversalRoot-->>Predicate: correlated EXISTS predicate
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
brandonshearin
left a comment
There was a problem hiding this comment.
Sean spent about 3 hours downloading his mental model of this problem to me, the layman of all laymans.
His manual testing strategy against a live neo and pg backend, and the automated test coverage he has included in the changeset itself give me confidence that this bug has been conquered for all time.
Great work.
Description
Resolves: BED-8320
Type of Change
Testing
make test_allwithCONNECTION_STRINGset)Screenshots (if appropriate):
Driver Impact
drivers/pg)drivers/neo4j)Checklist
go.mod/go.sumare up to date if dependencies changedSummary by CodeRabbit
New Features
Tests
Refactor