Repository navigation
docs: clarify CALL UNION variable scope (#3317) - #582
agcodes0315 wants to merge 3 commits into
Conversation
Document the observed variable scoping behavior across UNION and UNION ALL branches in CALL subqueries. Include a reproducible example and link to issue #3317.
docs: clarify CALL UNION variable scope (#3317)
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
I've addressed the automated review feedback for #3317. The updated documentation clarifies variable scope across UNION branches, and the latest automated reviews report no remaining actionable issues. |
Summary
Clarifies the visibility of imported variables across
UNIONandUNION ALLbranches within FalkorDBCALL {}subqueries.Problem
The existing documentation explains importing variables using an opening
WITHclause but does not explicitly describe whether those variables remain accessible across subsequent UNION branches.Issue: FalkorDB/FalkorDB#3317
Changes
'n' not definederror.Verification
Scope
Documentation-only clarification. No query engine modifications.
Related to FalkorDB/FalkorDB#3317.
Summary by cubic
Clarifies in the Cypher docs that, in
CALL {}subqueries usingUNIONorUNION ALL, an openingWITHimport in the first branch does not make those variables available in later branches for FalkorDB 4.20.7 and 6.0.2.'n' not definederror and guidance to import variables in each branch instead.Written for commit cdf6344. Summary will update on new commits.
Summary by CodeRabbit
WITHin the firstCALLbranch does not make its variable available in laterUNIONbranches in FalkorDB 4.20.7 and 6.0.2.