Repository navigation
feat(cypher): OPTIONAL MATCH with WITH/UNWIND stages (#1026) - #1044
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This was referenced Apr 4, 2026
Add optional_reentry flag to CompiledCypherQuery, set when the reentry MATCH clause is optional. The executor null-fills unmatched prefix rows so WITH + OPTIONAL MATCH produces left-outer-join semantics instead of silently dropping unmatched rows. Known limitation: null-filled rows have all columns null (including prefix-carried values) because the fill happens after RETURN projection. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
… null-fill (#1026) - Clear empty_result_row when optional_reentry is set to prevent spurious null row on empty graphs - Lock multi-alias WITH rejection as known limitation (#1047) - Add tests: all-match, property on optional, empty graph, multi-row optional Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Support
OPTIONAL MATCHqueries with interleavedWITH/UNWIND/SKIP/LIMITstages between clauses (#1026).Part of the #996 OPTIONAL MATCH umbrella.
Status: WIP — investigation starting.
🤖 Generated with Claude Code