Repository navigation
fix(#6311, #6312, #6313): a hop checks its target against what the row holds when it runs, and a relabelled vertex takes its aliases with it - #6326
Conversation
…w holds when it runs, and a relabelled vertex takes its aliases with it WITH * is an identity projection, so nothing downstream of it should be able to tell it is there. It could: two comma-separated patterns of one MATCH that share a variable were joined on it without the projection and multiplied out into a Cartesian product with it. The join is the identity check each hop runs against the names the row already carries, and those names were handed to the step as the planner's own live, mutable set. The set is filled with this clause's variables only after the clause is planned - which is what made the check work at all - and a following WITH clears it, so the shared variable stopped being seen. The step now gets a snapshot of what is bound at the point it will run: everything bound before this MATCH plus everything this MATCH has bound so far. A WITH * also stops replacing the scope with the literal name "*" and forwards it instead. A Cypher label write has to rewrite the vertex - ArcadeDB reads a record's type from the bucket it lives in, and a label set is a type - so the record moves and the old one is deleted. Every other reference to that node was left pointing at the deleted original: a second alias in the same row, or the same node reached again by a later row of the same clause. The next REMOVE then either failed to load the record or, on the way to deleting it a second time, followed its dangling edge-list chunk and reported the vertex as concurrently modified. SET already tracked its replacements; REMOVE tracked nothing. Both now share one LabelReplacements, which performs the rewrite and points every alias of the node at the live record, on this row and on all later ones. The shared rewrite also carries the edges' own properties over - re-linking by type alone silently dropped them - and migrates a self-loop once rather than once per direction. - #6311 `WITH *` changes `OPTIONAL MATCH` cardinality - #6312 `REMOVE` after `OPTIONAL MATCH` and `UNWIND` raises `RecordNotFoundException` - #6313 `REMOVE` label after `OPTIONAL MATCH` raises an edge-list `RecordNotFoundException`
|
Tick the box to add this pull request to the merge queue (same as
|
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 2 high |
🟢 Metrics 37 complexity
Metric Results Complexity 37
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Review: WITH * scope + label-write row fanout (#6311, #6312, #6313)Overall this is a careful, well-scoped fix with a good root-cause writeup and a solid new-test suite ( 1.
|
…ollows the node that moved under it Three points from the review, all taken. The legacy plan builder had the identical live-set hand-off, so the same snapshot rule now applies there. It is unreachable for parsed queries today - `clausesInOrder` is always populated - but this is precisely the "changes to clause handling may need updates in multiple paths" landmine CLAUDE.md warns about, and leaving one of the two paths holding the old shape is how it comes back. A row does not hold records only under their own name. A path variable, a collect() list and a map hold them too, and those were left pointing at the record the label write deleted - answering with the labels the node no longer has, and one re-read away from failing outright. redirect() now rebuilds them around the live records, and only when something inside actually moved, so a row with no replacement to apply still costs one isEmpty() check. Two tests cover it; both fail without this. The resolve() in SET's label path is kept and REMOVE's now matches it: it reads the write target directly, which does not depend on the row listing that variable as a column - the one thing redirect() cannot reach. Both say so.
|
Thanks - all three taken. 1. 2. 3. Re-verified: engine unit lane green, openCypher TCK 3,897 scenarios green. |
ReviewI read the diff plus the full current state of the touched files ( Correctness — looks solid
Minor: possibly redundant defensive codeIn both Worth double-checking: variable-length pathsThe fix is applied to the fixed-length hop branch in both the ordered builder ( Performance note (not a regression, but worth being aware of)
Test coverageThe two new test classes are thorough and clearly tied to the reported issues, including a good "control" test ( Nit
Nice write-up in the PR description, by the way — the "why" behind both bugs (live mutable set hand-off; bucket-derived typing forcing a record move) is explained clearly enough that the fix is easy to verify against the stated root cause. |
… own tests, and two comments say what is actually true The variable-length branch was worth the question and turns out to be immune by construction: ExpandPathStep reads its already-bound target from the incoming row, not from a plan-time set, so there was never a live set to be emptied under it. computePrevVarsForVlp only builds the relationship-uniqueness exclusion set, which is the pre-clause scope by definition. A test now pins the shared-variable join across a variable-length pattern, with and without the WITH *, because that is the branch a reader would expect to share the defect. The comment on the resolve() in both label paths claimed a gap it could not demonstrate: the write target is always read as a row column, so the per-row redirect() does reach it. The call stays - it makes each method correct on its own terms rather than on its caller's - but it now says that instead. redirect()'s descent into collections is charged to every row of the step once any row has replaced something, because the map that knows a node moved is step-wide. That trade is now written down where it is made. LabelReplacements gets direct tests: the chain a twice-relabelled node builds, the edges and edge properties carried over, the self-loop counted once, and rows of every shape redirected - including the one where nothing moved and the list must come back as the same instance. SET's label counter gets the idempotency test REMOVE already had.
|
Second pass addressed - thanks, the variable-length question was the right one to ask. Variable-length paths - immune by construction, and now pinned. The Performance trade - correct reading, and deliberate: the map that knows a node moved is step-wide, so once any row replaces something every later row pays the walk. Now written down at Tests - both suggestions taken. Re-verified: Cypher lane 7,037 green, openCypher TCK 3,897 green. |
ReviewWent through the full diff ( #6311 (
|
…d like any other A lightweight edge has no record to address, but LightEdgeRID carries the (type, out vertex, in vertex) triple and hashes on it, so it keys the replacement map exactly like a heavy edge's address does - and the copy re-attached to the replacement vertex is a different key rather than the same one. The position guard that skipped them is gone: a row holding one now follows the endpoint that moved instead of answering with a vertex that no longer exists. Two tests, one at the class and one through Cypher. The snapshot comment now admits that the set also carries the hop's own target and relationship names, and says why that is free: the identity check reads a name only when the row ALSO already holds a vertex under it, and a name the hop is about to bind for the first time is not in the row.
|
Third pass done. Lightweight edges - turned out to be fixable rather than an accepted limitation, so they're fixed. The premise that a lightweight edge has no independent identity is half right: it has no address, but
Double Re-verified after the change: Cypher lane 7,039 green, openCypher TCK 3,897 green. |
|
test |
ReviewI read through the full diff ( OverallThe two fixes are well targeted and the reasoning in the PR description checks out against the code:
Finding: the same label-rewrite bug is still live in
|
…rewrite as everything else The third copy of the pre-fix code was in MergeStep, and its self-loop handling was worse than the other two: the OUT pass re-created the loop against edge.getVertex(IN), which is still the record about to be deleted, so a relabelled node with a self-loop came out with an edge pointing at nothing. Edge properties were dropped there too, and nothing redirected the aliases - not even the propagateUpdateToSameNodeAliases that SET had before this branch, so a node the input row also bound under another name was left on the deleted record. It now takes the shared LabelReplacements, one per running step, exactly as SET and REMOVE do. Two tests: the alias case, which fails without this, and the same node merged on three rows.
|
Good catch on It was the third copy of the pre-fix code, and you're right that its self-loop handling is worse than the other two were: the OUT pass re-created the loop against
Two tests: On the Re-verified: Cypher + MERGE lanes 7,085 green, openCypher TCK 3,897 green. |
Review of #6326I reviewed the diff across #6311 (
|
The bucket check read as if it were excluding lightweight edges, which is the opposite of what it does. Every edge that came out of getEdges() has a bucket, so only the null is worth guarding, and the comment now leads with the fact that lightweight edges are tracked like any other.
|
Taken - the guard now says what it guards. You're right that it read backwards: the That's the last open point from my side: the three reported defects are fixed with regression tests that fail without them, the two latent ones the shared rewrite exposed (edge properties dropped, self-loop duplicated - dangling, in MERGE's copy) are fixed with it, and the one genuinely out-of-scope item is filed as #6328. Final verification on this head: Cypher + MERGE lanes 7,085 green, openCypher TCK 3,897 green, full engine unit lane green. |
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 2 high |
🟢 Metrics 36 complexity
Metric Results Complexity 36
🟢 Coverage 95.54% diff coverage · -6.54% coverage variation
Metric Results Coverage variation ✅ -6.54% coverage variation Diff coverage ✅ 95.54% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (bdf46f9) 160346 127117 79.28% Head commit (daba60d) 192796 (+32450) 140243 (+13126) 72.74% (-6.54%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#6326) 157 150 95.54% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
ReviewThis is a well-documented fix with solid regression coverage for the three reported issues (#6311, #6312, #6313), and the commit history shows real iteration in response to review (legacy plan builder parity, path/collection redirection, lightweight edges, MergeStep). The The 1.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6326 +/- ##
==========================================
+ Coverage 70.54% 70.58% +0.04%
==========================================
Files 1848 1849 +1
Lines 160346 160431 +85
Branches 33724 33742 +18
==========================================
+ Hits 113118 113247 +129
+ Misses 33267 33218 -49
- Partials 13961 13966 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
… same thing wherever the node sits, and the star is what the parser wrote rather than what it is called #6338 - A disjunction (y:A|B) written on a node a relationship expands INTO matched nothing, while the same disjunction on the pattern anchor matched. The anchor is served by MatchNodeStep, which has always had a disjunction branch; the expanded endpoint was filtered by MatchRelationshipStep, which ANDed the alternatives - so an ordinary Cypher pattern returned an empty result, with no error and no warning, which reads as "no such data" rather than as a bug. Three places in that step were wrong, not one: the loaded-vertex filter ANDed the labels, the bucket-id fast path tested only getLabels().get(0), and the schema pre-check required EVERY alternative to name an existing type, so a disjunction mentioning a label nobody had created rejected every row before the scan even started - an alternative that matches nothing is not a filter that matches nothing. All of them, plus MatchNodeStep, ExpandPathStep and the WHERE-side LabelCheckExpression, now go through Labels.matches(vertex|type, labels, disjunction) and Labels.canMatchInSchema(...): five copies of "what does a disjunction mean" became one, which is what let them disagree. The optimizer is not implicated - shouldUseOptimizer declines a disjunction on a node with incident relationships, because ExpandAll/ExpandInto carry a single targetLabel. #6334 - CypherExecutionPlan.applyProjectionToScope decided a projection item was the WITH * star by comparing its resolved NAME to "*", so WITH n AS `*` - alias "*", expression VariableExpression ("n") - was read as a star and forwarded the incoming scope instead of resetting it to the one name it projects, while the alias itself was never projected at all. A regression from #6326, which gave the same sentinel the stronger meaning. The star is now a property of the item rather than of its name: ReturnClause.ReturnItem.star() is the only thing that builds it, isStar() is the only thing that asks, and every name-based test - the scope application, the WITH projection step, the variable-projection strip, isReturnAll(), the referenced-variable walk and five sites in the semantic validator - now asks that instead of the name. That also settles the bare backticked WITH `*`, which the name-based predicate could never take apart from a real star. #6328 - SET calls propagateUpdateToSameNodeAliases after writing a property, so every alias in the row binding the same record observes the write; REMOVE replaced only the alias it was given, so a removed property stayed visible through a second alias of the same node while SET n.p = null - the same write spelled differently - answered null for both. Cypher has one binding per node per row. The helper moved out of SetStep into RowAliases, shared by both steps the way #6326 gave them one shared LabelReplacements. #6336 - EagerDistinctCollectOptionalMatchStep deleted. git log --follow shows it dead from birth: it landed in the same commit as the fix for #3218, which took a different route entirely (CypherFunctionFactory + AggregationStep), and nothing has constructed it since. It carried a whole alternative buffering strategy for OPTIONAL MATCH, so a reader tracing that plan had to work out it was not in the plan before they could trust what was. #6335 - A Cypher label write is O(degree) and changes RIDs, and nothing said so. A label is a type, a type is a bucket, and a record's type comes from the bucket it lives in, so SET n:Label cannot edit metadata: it rewrites the vertex under the new type and re-creates every incident edge in both directions, touching every neighbour's edge list, and hands the vertex and all of its edges new RIDs. On a supernode that is the difference between a millisecond and a stall. That is not fixable while a label is a type - modelling extra labels as a property is the real fix and its own epic, and a bulk edge move would cut the constant but neither the complexity nor the RID churn - so it is made visible instead. LabelReplacements.replace() counts the edges it migrates, which costs nothing because it walks them anyway, and logs a WARNING naming the node, both types and the count above arcadedb.opencypher.labelWriteDegreeWarning (10000, 0 disables). arcadedb.opencypher.labelWriteDegreeLimit refuses the write above a degree, checked before any record moves; it is off by default, because the rewrite is slow rather than wrong and a query that merely takes too long should not start failing on upgrade. The cost and the RID change are now in the javadoc of the method that pays them, and in docs/6335-cypher-label-write-cost.md.
… same thing wherever the node sits, and the star is what the parser wrote rather than what it is called (#6348) * fix(#6338, #6334, #6328, #6336, #6335): a label disjunction means the same thing wherever the node sits, and the star is what the parser wrote rather than what it is called #6338 - A disjunction (y:A|B) written on a node a relationship expands INTO matched nothing, while the same disjunction on the pattern anchor matched. The anchor is served by MatchNodeStep, which has always had a disjunction branch; the expanded endpoint was filtered by MatchRelationshipStep, which ANDed the alternatives - so an ordinary Cypher pattern returned an empty result, with no error and no warning, which reads as "no such data" rather than as a bug. Three places in that step were wrong, not one: the loaded-vertex filter ANDed the labels, the bucket-id fast path tested only getLabels().get(0), and the schema pre-check required EVERY alternative to name an existing type, so a disjunction mentioning a label nobody had created rejected every row before the scan even started - an alternative that matches nothing is not a filter that matches nothing. All of them, plus MatchNodeStep, ExpandPathStep and the WHERE-side LabelCheckExpression, now go through Labels.matches(vertex|type, labels, disjunction) and Labels.canMatchInSchema(...): five copies of "what does a disjunction mean" became one, which is what let them disagree. The optimizer is not implicated - shouldUseOptimizer declines a disjunction on a node with incident relationships, because ExpandAll/ExpandInto carry a single targetLabel. #6334 - CypherExecutionPlan.applyProjectionToScope decided a projection item was the WITH * star by comparing its resolved NAME to "*", so WITH n AS `*` - alias "*", expression VariableExpression ("n") - was read as a star and forwarded the incoming scope instead of resetting it to the one name it projects, while the alias itself was never projected at all. A regression from #6326, which gave the same sentinel the stronger meaning. The star is now a property of the item rather than of its name: ReturnClause.ReturnItem.star() is the only thing that builds it, isStar() is the only thing that asks, and every name-based test - the scope application, the WITH projection step, the variable-projection strip, isReturnAll(), the referenced-variable walk and five sites in the semantic validator - now asks that instead of the name. That also settles the bare backticked WITH `*`, which the name-based predicate could never take apart from a real star. #6328 - SET calls propagateUpdateToSameNodeAliases after writing a property, so every alias in the row binding the same record observes the write; REMOVE replaced only the alias it was given, so a removed property stayed visible through a second alias of the same node while SET n.p = null - the same write spelled differently - answered null for both. Cypher has one binding per node per row. The helper moved out of SetStep into RowAliases, shared by both steps the way #6326 gave them one shared LabelReplacements. #6336 - EagerDistinctCollectOptionalMatchStep deleted. git log --follow shows it dead from birth: it landed in the same commit as the fix for #3218, which took a different route entirely (CypherFunctionFactory + AggregationStep), and nothing has constructed it since. It carried a whole alternative buffering strategy for OPTIONAL MATCH, so a reader tracing that plan had to work out it was not in the plan before they could trust what was. #6335 - A Cypher label write is O(degree) and changes RIDs, and nothing said so. A label is a type, a type is a bucket, and a record's type comes from the bucket it lives in, so SET n:Label cannot edit metadata: it rewrites the vertex under the new type and re-creates every incident edge in both directions, touching every neighbour's edge list, and hands the vertex and all of its edges new RIDs. On a supernode that is the difference between a millisecond and a stall. That is not fixable while a label is a type - modelling extra labels as a property is the real fix and its own epic, and a bulk edge move would cut the constant but neither the complexity nor the RID churn - so it is made visible instead. LabelReplacements.replace() counts the edges it migrates, which costs nothing because it walks them anyway, and logs a WARNING naming the node, both types and the count above arcadedb.opencypher.labelWriteDegreeWarning (10000, 0 disables). arcadedb.opencypher.labelWriteDegreeLimit refuses the write above a degree, checked before any record moves; it is off by default, because the rewrite is slow rather than wrong and a query that merely takes too long should not start failing on upgrade. The cost and the RID change are now in the javadoc of the method that pays them, and in docs/6335-cypher-label-write-cost.md. * fix(#6334, #6335): the duplicate-column check asks the item too, and the degree guard refuses on the number it would report Three points from the code review, all valid. checkDuplicateAliases was the one site the #6334 sweep missed, and it is the same bug one call further on: it decided an item was the star by comparing its name to "*", so it exempted any projection whose alias happened to be that - and now that a user can legitimately alias to the backticked `*`, two such columns collided without being reported. It asks item.isStar() like the rest of the file. The degree guard measured with countEdges(BOTH), which sums the two edge lists independently and so counts a self-loop twice, while the migration right below it re-creates a self-loop exactly once. The limit therefore refused on a number the warning would never print, in a feature whose whole point is to report the true cost. countEdgesToMigrate() mirrors the migration's own traversal instead - the OUT list in full, the IN list skipping the self-loops the OUT pass already took - and walks the connected RIDs rather than the edges, so the skip costs a list walk and not a record load per edge. The WARNING itself was never asserted: deleting the log call left every assertion in crossingTheWarningThresholdReportsWithoutRefusing green, which is the exact failure mode #6335 is about. The test now installs a capturing Logger through LogManager.setLogger - documented as this hook, previous logger restored in a finally - and checks the record's message and arguments. Each of the three is pinned by a test verified to fail without its fix: removing the log call fails the warning assertion, countEdges(BOTH) fails the new self-loop test with "the vertex has 7 edges and ... limit is 6", and restoring the "*" name guard fails the collision test. * fix(#6338): a node pattern in expression position learns its disjunction from the grammar, and the clauses that write refuse a label expression The code review found four more copies of the AND-only label check, and it was right, but tracing them turned up one cause underneath rather than four bugs: CypherExpressionBuilder.parseNodePattern built every node pattern in EXPRESSION position with the disjunction flag hardcoded to false. A pattern comprehension or a pattern predicate therefore received (y:A|B) already indistinguishable from (y:A:B), and no amount of fixing the executor could recover what the parser had thrown away. It now reads the flag off the grammar through ParserUtils.isLabelDisjunction, exactly as the MATCH-side builder does. Two of these were observable: [(a)-->(y:Author|Topic) | y.k] returned [] expected ["t1"] exists((a)-->(:Author|Topic)) returned no row expected the row the second while the block form EXISTS { (a)-->(:Author|Topic) } answered correctly all along, because it takes the subquery path - two spellings of one predicate disagreeing about what a disjunction means. MERGE was worse than an under-count. MERGE (n:A|B {k:'x'}) ANDed its match, so it missed an existing :B node, and then created a second one under an invented A~B composite type: a duplicate, silently, from a clause whose entire purpose is not to make one. CREATE (n:A|B) invented the same composite. Neo4j refuses a label expression in both clauses, for the reason that settles it - a disjunction says which labels a node MAY have, and there is no node a write can produce that satisfies "A or B" without picking one. Both are now refused, with a message that names the spelling that does mean something (:A:B). PatternPredicateExpression, PatternComprehensionExpression (start and end) and MergeStep.matchesNodePattern route through Labels.matches like the rest, so the one-home claim holds for every site the review listed. MergeStep can no longer see a disjunction at all, but it does not get to be the odd one out. Left for its own issue, being a different defect: PatternComprehensionExpression .traverseUncorrelatedStart picks getLabels().get(0) as its scan root, so an UNBOUND comprehension start node with a disjunction still under-scans. openCypher package 4664 tests green, openCypher TCK 3897 green - the TCK is what pins the CREATE/MERGE refusal as the spec behaviour and not just a preference. * fix(#6338): the refusal keys on the disjunction, not on how many labels came back with it Both reviewers asked why checkNoLabelDisjunction guarded on getLabels().size() > 1, and the answer turned out to be that it should not: the guard was a hole rather than dead defensiveness. collectStaticLabels leaves a Cypher 25 dynamic $(expression) alternative out of the static list, so CREATE (n:Author|$('Topic')) arrives carrying one static label and a disjunction flag, and the count-based guard let it straight through - in the shape where a write acting on "A or B" is least defensible of all, the second label not being known until the query runs. It now refuses on the flag alone, which is what actually means "a | was written", and names the conjunction spelling only when there are two labels to name. Pinned by a test that fails with the count restored. Two readability notes from the same reviews, neither a behaviour change: the CapturingLogger javadoc records the sequential-execution assumption it and the GlobalConfiguration writes rest on, so turning on class parallelism for engine does not quietly invalidate them; and RowAliases says why it does not consult LabelReplacements' map - it answers "the row holds an older copy of a record that is still there", a different question from "the row holds a record that was deleted and replaced", and SetStep.applyLabels is the caller that needs both. openCypher package 4665 green, openCypher TCK 3897 green.
Fixes #6311, fixes #6312, fixes #6313.
#6311 -
WITH *changed the cardinality of a multi-pattern MATCHWITH *is an identity projection, so nothing downstream of it should be able to tell it is there. It could:The issue reports it on
OPTIONAL MATCH, butOPTIONALis incidental: plain MATCH breaks the same way, and so does any following clause, not justRETURN count(*).The join between two comma-separated patterns of one MATCH is the identity check each hop runs on its target against the names the row already carries. Those names were handed to
MatchRelationshipStepas the planner's live, mutableboundVariablesset. That set is filled with the clause's own variables only after the clause is planned (boundVariables.addAll(matchVariables)), which is what made the check work at all - retroactively, through the shared reference. A following WITH clears the same set, andWITH *refilled it with the literal name*, so by the time the hop executed the shared variable was gone from it and every target was accepted.Two changes:
WITH *forwards the incoming scope instead of replacing it with"*". An explicit projection list still resets it, andWITH *, expr AS aliasdoes both.#6312 / #6313 - a label write left every other reference to the node dangling
ArcadeDB reads a record's type from the bucket it lives in, and in the Cypher mapping a label set is a type, so
REMOVE n:Lcannot retype in place: it writes a new record and deletes the old one. Every other reference to that node was left pointing at the deleted original - a second alias in the same row, or the same node reached again by a later row of the same clause (UNWIND fan-out, or simply two matches sharing the node). The nextREMOVEthen either failed to load the record:or, on the way to deleting it a second time, followed its dangling edge-list chunk and reported the vertex as concurrently modified:
SetStepalready tracked its own replacements forSET n:L;RemoveSteptracked nothing. Both now share oneLabelReplacements, which performs the rewrite and points every alias of the node - in this row and in every later one - at the live record, so a repeated label removal becomes an idempotent no-op instead of a fatal one.Two defects of the rewrite itself, shared by SET and REMOVE, are fixed in the same place:
newVertex.newEdge(edge.getTypeName(), other), i.e. by type alone, so-[:R {klist:[...]}]->came back as-[:R]->. They are now carried over (and a LIGHTWEIGHT type, which has none, still gets none).On the expected values in the reports
REMOVEafterOPTIONAL MATCHandUNWINDraisesRecordNotFoundException#6312 asks forrow_count = 3and gets it.REMOVElabel afterOPTIONAL MATCHraises an edge-listRecordNotFoundException#6313 asks forrow_count = 1, but the query matches 2 rows: the fixture gives the middle node two outgoing edges ([:X]->(n2)and the[:c]->(:Extra)added by the secondCREATE), and(n2)<-[]-(n1)matches both. The test asserts 2. What was reported - the exception - is real and fixed.Tests
CypherWithStarScopeIssue6311Test(5) andCypherLabelWriteRowFanoutIssue6312Test(5), both new. Reverting the fix fails 7 of the 10; the remaining 3 are controls that must keep passing (explicitWITH n0, n1, n2,WITH *before a MATCH,WITH *, expr AS alias).Verification run: the whole
engineunit lane, 15,730 tests, green; the openCypher TCK suite, 3,897 scenarios, green.