Repository navigation
Fix issues #7896, #7892, #7889, #7884, #7881 - #8091
Conversation
…ion (#7896) The #7774 parenthesis fix made rendersParentheses() answer yes for EVERY parenthesised expression carrying a modifier chain. That method sits on the projection-naming path - an unaliased column is named after the text its expression renders to - so SELECT (name).asString() FROM T silently became the column "(name).asString()" where it had always been "name.asString()", and a client reading the result by its historical key got null. The parentheses are only load-bearing around an atom the grammar gives no modifier* tail of its own: a NUMBER, NULL, a boolean or RID literal, a parenthesised WHERE clause, an array concatenation. For an identifier chain, a string literal, a function call, an input parameter, a map or array literal, a CASE block or a parenthesised statement, X.method() parses exactly as (X).method() means, so the parentheses go back to being the noise they were. Anything the predicate does not recognise keeps its parentheses: a wrong yes is a statement that no longer parses, a wrong no is only a column name.
… things by position (#7889) Both are declared varargs but gated the WHOLE operation on the FIRST argument being non-null, so a leading null silently discarded every argument after it while the same null one position later was acted on: [1,2,3].remove(null,2) answered [1,2,3] and reported success where [1,2,3].remove(2,null) answered [1,3]. An UPDATE ... SET tags = tags.remove(:a, :b) whose first bound parameter happened to be null left the property exactly as it was and reported success. The sibling append() lost the same positional contradiction under #7028. The guard is now only "there is an argument", which keeps the ability to remove a null ELEMENT - a collection really can hold one, and the loop already honoured it in every position but the first. MultiValue.removeFromCollection binds Objects.equals instead of iToRemove::equals, which throws from Objects.requireNonNull before the first element is even looked at: that was the NPE removeAll(2, null) raised where remove(2, null) was harmless. The argument stays the receiver of the comparison, matching both the method reference it replaces and Collection.remove(Object).
… by content (#7881) An index key is an Object[] whose elements may themselves be arrays - a BINARY property is a byte[] - and Arrays.equals compares such an element by IDENTITY. #7109 routed DocumentIndexer through Objects.deepEquals for exactly that reason; TransactionIndexContext.IndexKey and ComparableKey were left on the shallow form while ComparableKey.compareTo compared the very same elements BY CONTENT through BinaryComparator. Both are used, on the same data, by the same code path: compareTo orders the TreeMap of pending entries and equals/hashCode key the HashMap inside each of its values. The outer lookup found the key and the inner one missed it, so the ADD never found the REMOVE it was meant to retire and was not turned into a REPLACE carrying the superseded oldRid - which is what commit keys the removal of the old RID on. The adjacent cross-sub-index check reads its per-key map by iteration rather than by lookup, so it still saw the stale ADD and refused a perfectly legitimate delete-and-reinsert of the same BINARY key in one transaction with a DuplicatedKeyException. The policy now lives in one place, com.arcadedb.index.IndexKeyEquality, which both sides read from, so a third side cannot pick a fourth notion of equality.
… too (#7892) #6935 taught unlinkSuperType to rebuild the ancestor's polymorphic BUCKET caches from what is still linked, so SELECT FROM <ancestor> no longer reaches the detached subtree. The INDEX side was never undone: the sub-indexes addSuperType creates over the subtype's buckets are attached to the ancestor's TypeIndex, and nothing detached them when the link went away. The ancestor's wrapper therefore kept fanning out over the detached subtree: lookupByKey handed back records of a foreign type, countEntries() counted them, and the ancestor's UNIQUE constraint stayed enforced across them, refusing a key that was genuinely free. SELECT was spared only because the planner filters index results by type downstream, which is why this survived #6935 unnoticed. The attachment also survived a reopen, since schema.json still listed the component under the ancestor. Dropped rather than merely detached, which makes it the exact mirror of addSuperType: the components exist BECAUSE of the linkage, they index a property the subtype no longer even has, and a detachment alone would leave them on disk for the next reload to hook straight back up. Which buckets are no longer reached is read from the polymorphic caches unlinkSuperType has just recomputed, never subtracted from the detached subtree, so a bucket a diamond still reaches through another surviving path keeps its sub-index. Because the propagated set is getAllIndexes(true), the walk goes up the ancestor's own super types too.
…ence (#7884) #7042 gave the deletion side of post-compaction overlay re-application a multiplicity comparison: it spends an exclusion budget only for as many occurrences of a pair as the freshly scanned base still carries. The add side, three hundred lines earlier in the same method, still dedupped by presence - it probed hasForwardEdge and skipped the buffered add whenever the fresh base held ANY occurrence of the pair. With parallel edges that drops a real edge. One occurrence of s -> t in the fresh run and a buffered add of a SECOND one, and the second existed in neither the fresh base nor the overlay: getNeighborIds, isConnectedTo and countEdgesBetween reported the pair once instead of twice until the next compaction rebuilt the base from the store. The symmetry with the deletion side is exact. There the scan SWALLOWING a change led to an over-spent budget and the fix was to subtract forwardEdgeCount from the pre-compaction count; here the scan MISSING a change leads to an under-count and the same subtraction, read the other way round, is the fix: exactly max(0, fresh - before) of a pair's buffered additions were captured by the scan, and those - a prefix, so they are counted - are the only ones skipped. The residual this left is struck from GraphAnalyticalView.countBetweenForType's javadoc; #6777's RID reuse stays, and so does the clamp.
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. Warning Review limit reachedNext included review available in 7 minutes. View limit detailsLimit details: You’ve used all 4 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe pull request adds shared content-aware index-key equality, multiplicity-aware graph overlay reapplication, corrected SQL expression rendering, null-safe collection removal, and cleanup of indexes detached by supertype removal. Regression tests cover each behavior. ChangesIndex key equality
Parallel-edge reapplication
Projection parentheses
Collection null arguments
Supertype index detachment
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
|
Tick the box to add this pull request to the merge queue (same as
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 29 |
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.
ReviewI traced all five fixes against the actual source (not just the diff) since this touches some intricate paths (ANTLR AST wrapping, the delta-overlay compaction race, schema index linkage). Overall this is a strong PR: each fix is narrowly scoped, the reasoning in the doc comments is unusually precise, and the regression tests are well targeted at the exact race/edge case each issue describes. #7896 (
|
…nt, cover the grandparent walk Three points from the PR #8091 review, none of them a defect: - IndexKeyEquality.sameTuple hand-rolled exactly what Arrays.deepEquals already is - same identity and null short-circuits, same length check, same per-element comparison - in a file whose whole point is that one policy is reused. It delegates now, next to hashTuple's Arrays.deepHashCode, which also clears PMD's CompareObjectsWithEquals on the identity fast path. - BaseExpression.carriesItsOwnModifierTail() recognises EVERY nested block through one test, which works because of an invariant that lives in the AST builder and is invisible from this file: a map literal, an array literal and both CASE forms are each wrapped in a BaseExpression before being attached to a parent, although ArrayLiteralExpression and CaseExpression extend MathExpression directly. Named, with the sites that establish it, so a new grammar alternative that attaches one raw is recognisable as the thing that would break it. - collectSubIndexesNoLongerCovered recurses into the FORMER SUPER TYPE'S own super types, and no test reached past a three-level hierarchy where the severed link was the direct one. Z6 <- A6 <- B6 <- C6 severing B6 -> A6 now pins it: Z6[n] keeps its component over A6's bucket and loses the ones over B6's and C6's. Verified to fail with that recursion removed.
…nt, cover the grandparent walk Three points from the PR #8091 review, none of them a defect: - IndexKeyEquality.sameTuple hand-rolled exactly what Arrays.deepEquals already is - same identity and null short-circuits, same length check, same per-element comparison - in a file whose whole point is that one policy is reused. It delegates now, next to hashTuple's Arrays.deepHashCode, which also clears PMD's CompareObjectsWithEquals on the identity fast path. - BaseExpression.carriesItsOwnModifierTail() recognises EVERY nested block through one "expression != null" test, which works because of an invariant that lives in the AST builder and is invisible from this file: a map literal, an array literal and both CASE forms are each wrapped in a BaseExpression before being attached to a parent, although ArrayLiteralExpression and CaseExpression extend MathExpression directly. Named, with the sites that establish it, so a new grammar alternative that attaches one raw is recognisable as the thing that would break it. - collectSubIndexesNoLongerCovered recurses into the FORMER SUPER TYPE'S own super types, and no test reached past a three-level hierarchy where the severed link was the direct one. Z6 <- A6 <- B6 <- C6 severing B6 -> A6 now pins it: Z6[n] keeps its component over A6's bucket and loses the ones over B6's and C6's. Verified to fail with that recursion removed.
1801220 to
8381988
Compare
Follow-up reviewI re-traced this after the
No new issues found in the delta. Two points worth having on the table, neither blocking:
Nothing else stood out on code quality, performance, or security across the five fixes - |
…ough its callers The class exists to be the ONE place the "are these the same index key?" policy lives, and it was reachable only through the three call sites that read it. A dedicated test states the contract itself: an array-valued element compared by content (byte[], float[], int[] and a nested Object[] - the primitive arms are where Arrays.equals differs from Arrays.deepEquals, and a BINARY property or a dense vector key really is one), a scalar and a List keeping their own equality, length mismatches, a null tuple against a null element, and equal tuples hashing equally, which is the half of the contract a HashMap depends on and the half the shallow form used to break. Raised in the PR #8091 follow-up review.
ReviewWent through all five fixes plus the follow-up "review" commit in detail (diff, surrounding call sites, and the grammar/AST-builder paths for the SQL fix). This is unusually well-documented and well-tested work; I traced each fix to its production call site to make sure it's actually wired in, not just covered by a unit test. #7896 - parenthesized projection naming (
|
ReviewFive independent, well-isolated fixes, each with a focused regression test that (per the PR description) fails on unfixed code. Overall this is high-quality, carefully reasoned work - the review below is mostly confirmation plus a couple of minor notes, no blockers found. #7896 -
|
… they establish BaseExpression#carriesItsOwnModifierTail() recognises a map literal, an array literal and both CASE forms through one test for a non-null inner expression, and that works only because each of them is wrapped in a BaseExpression here before being attached to a parent - although ArrayLiteralExpression and CaseExpression extend MathExpression directly and could be attached raw. The predicate documents its dependence on that; the four visitors that establish it said nothing, so a change to any of them could silently start renaming unaliased projection columns again with nothing on the screen to suggest a connection. Comments only, no behaviour change. Raised in two PR #8091 review rounds, both times as a non-blocking note.
|
Review Went through the diff for all five fixes plus the three follow-up review commits already on the branch. Overall this is careful, well-reasoned work: each fix is narrowly scoped, the reasoning for the chosen fix (vs. the alternative the issue offered) is spelled out in commit messages/javadoc, and every fix ships with a regression test that is stated to fail pre-fix. Correctness - traced through the trickier ones by hand
Minor nit Nothing else flagged Nice work tightening up five separate longstanding bugs with this much care taken to keep each fix minimal and mirror existing patterns (the #7042/#7884 symmetry, the #7109/#7881 consolidation) rather than inventing new approaches. |
CLAUDE.md asks for the class to be imported and used by its bare name; five places in the two tests added here spelled the type out instead - Bucket and Index in the schema test, List in both. Raised in a PR #8091 review round as a non-blocking nit. No behaviour change.
ReviewWent through all five fixes plus the new tests in detail. Overall this is a very high-quality PR: each fix is narrowly scoped, the reasoning is thoroughly documented in both commit messages and code comments, and every fix ships with a regression test that's stated (and plausible) to fail on the unfixed code. I traced the trickier interactions by hand rather than just reading the diff, notes below. #7896 -
|
… matter The method skips the first `capturable` of a pair's buffered additions in arrival order, not the ones the scan actually saw - the base CSR is a run of neighbour ids and cannot say which those were. That is deliberate rather than an approximation nobody noticed: an edge the base run holds carries no RID there to be told apart from another occurrence of the same pair until the next compaction rebuilds the mapping, so a reader of the two can observe only the pair's total multiplicity, which is the quantity the count is chosen to make right. Comment only, no behaviour change. Raised in a PR #8091 review round as a non-blocking note for future readers.
ReviewWent through all five fixes plus the follow-up review commits already on this branch, tracing the trickiest one ( #7896 - unaliased parenthesized projection naming (sql)
#7889 - null argument position in remove()/removeAll() (sql)Verified the guard change doesn't reintroduce a regression for the zero-arguments case ( #7884 - overlay add-side dedup by multiplicity (concurrency/olap)Traced #7881 - transaction index overlay array-key equality (engine/index)
Minor/optional: #7892 - removeSuperType leaves the ancestor's index attached (schema)This is the one I traced most carefully, since
No bugs found here either, but this code path has enough moving parts (schema mutation during iteration, identity-based wrapper bookkeeping split across two classes) that it would benefit from a short comment at the General
Nice work tightening the reasoning across the review rounds already visible in the commit history (delegating to |
…he fallback the schema fix leans on Two optional items from a PR #8091 review round: - IndexKey.equals()/hashCode() have two branches and only the unique one was pinned. The non-unique branch keys on the tuple AND the RID, with the same helper doing the tuple half, so an edit to one branch could leave the other on a shallow comparison with nothing red to show for it. - LocalSchema.dropIndexInternal's empty-wrapper cleanup finds the wrapper by walking UP from the subtype that owned the dropped component. dropSubIndexesNoLongerCovered calls in with that walk deliberately broken and repeats the cleanup itself against the real owner, so it depends on this one being a harmless no-op rather than on it working. Said so at the site, since a refactor there would otherwise look free.
ReviewWent through all five fixes and their tests in detail (diff + surrounding code, not just the patch hunks). This is an unusually well-documented PR - each fix states the invariant it depends on, and several follow-up commits already address earlier review rounds (grandparent-walk test coverage, Arrays.deepEquals delegation, AST-invariant comments, import style). I did not find a correctness bug that survived those rounds. Notes below are non-blocking. #7896 - parenthesis/projection-naming fixTraced Fallback direction is correctly conservative throughout: every "not recognised" branch keeps the parentheses (safe - worst case is a stale column name) rather than dropping them (unsafe - could produce unparseable text). #7892 - removeSuperType index detachment
#7884 - DeltaOverlay add-side dedupThe multiplicity math ( #7881 - IndexKeyEqualityClean extraction; #7889 - null-argument position in remove()/removeAll()
General
Nice work - the amount of care taken to state why each invariant holds (and to test the edge of it, like the grandparent-walk and non-unique-key-branch cases added in follow-up commits) is well above the norm for a bundle of five independent fixes. |
… with it (#7892) A regression of this PR's own #7892 fix, found by an integration lane that is green on the merge base. LocalSchema.dropType severs the doomed type's link to each of its super types only so it can re-parent the SURVIVING sub types onto those same super types a few lines later, and it re-links them with createIndexes=false precisely because the propagated components are still on disk and still attached. Reading "which buckets does the ancestor no longer reach" in that window reads a relationship the schema is halfway through rewriting: at that moment the doomed type still carries its whole subtree, so the answer includes the grandchildren, and their components were dropped with nothing to put them back. DROP TYPE on a middle type therefore left a surviving grandchild out of the ancestor's index and out of its UNIQUE constraint - silently, since the schema still named the index. The withdrawal is now skipped while that cascade is in flight, which is the only caller that unlinks without meaning the subtree to stop being indexed; the doomed type's own components are dropped by the cascade itself, as before.
ReviewThis is a well-scoped, well-documented PR: five independent fixes, each with a regression test that's been shown to fail on the unfixed code, plus follow-up commits that already tightened a few things a prior review round raised (delegating #7896 -
|
…7896) A PR #8091 review round asked whether the StatementExpression/SubqueryExpression override is reachable at all, or only defensive. It is reachable, and it is load-bearing: a WRITTEN pair of parentheses around a node that already renders its own - `((SELECT 1 AS v)).v` - is the redundant kind, and with the override returning false the projection is named `((SELECT 1 AS v)).v` instead of `(SELECT 1 AS v).v`. Verified by flipping it and watching the rendering change. Pinned so the answer does not have to be re-derived, and so a refactor that made either class extend MathExpression directly would fail here rather than silently fall through to the conservative branch.
ReviewWent through all 5 fixes plus the follow-up "review" commits already folded into this branch. Overall this is unusually careful work: each fix is isolated, comes with a regression test that's stated (and, per the description, verified) to fail pre-fix, and the commit history shows the author already caught and fixed a real regression of their own #7892 change (the DROP TYPE / surviving-grandchild case) via integration testing rather than shipping it. That's a good sign for correctness discipline. Traced the two trickiest pieces of logic by hand against the AST builder / grammar wiring rather than taking the comments at face value: #7896 ( #7884 ( #7881 / #7892 — the #7889 — straightforward, and the Nothing blocking. A couple of very minor, non-blocking notes:
Nice use of |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 29 |
🟢 Coverage 96.72% diff coverage · -6.19% coverage variation
Metric Results Coverage variation ✅ -6.19% coverage variation Diff coverage ✅ 96.72% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (62aca77) 186737 155192 83.11% Head commit (3edb18f) 219354 (+32617) 168718 (+13526) 76.92% (-6.19%) 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 (#8091) 61 59 96.72% 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.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8091 +/- ##
============================================
+ Coverage 74.76% 74.77% +0.01%
- Complexity 2561 2562 +1
============================================
Files 1998 1999 +1
Lines 186737 186809 +72
Branches 39109 39125 +16
============================================
+ Hits 139612 139693 +81
+ Misses 31584 31574 -10
- Partials 15541 15542 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Five independent fixes, each with a regression test verified to fail on the unfixed code.
Closes #7896
Closes #7892
Closes #7889
Closes #7884
Closes #7881
#7896 - redundant parentheses renamed unaliased projections (sql, major)
The #7774 parenthesis fix made
BaseExpression.rendersParentheses()answer yes for every parenthesised expression carrying a modifier chain. That method sits on the projection-naming path, soSELECT (name).asString() FROM Tsilently became the column(name).asString()where it had always beenname.asString(); a client reading the result by its historical key got null.The predicate now asks whether the parenthesised atom has a
modifier*tail of its own in the grammar. It does not for a NUMBER,NULL, a boolean or RID literal, a parenthesised WHERE clause or an array concatenation - those keep their parentheses, which is all(42).asString()ever needed. It does for an identifier chain, a string literal, a function call, an input parameter, a map or array literal, a CASE block and a parenthesised statement, so for those the parentheses go back to being the noise they were. Anything the predicate does not recognise keeps its parentheses: a wrong "yes" is a statement that no longer parses, a wrong "no" is only a column name.#7892 - removeSuperType left the ancestor's index over the detached subtree (engine, major)
removeSuperTypeundid the polymorphic BUCKET side of a linkage (#6935) and nothing else. The sub-indexesaddSuperTypecreates over the subtype's buckets stayed attached to the ancestor'sTypeIndex, so after the link was severedlookupByKeyhanded back records of a foreign type,countEntries()counted them, and the ancestor's UNIQUE constraint stayed enforced across them - refusing a key that was genuinely free.SELECTwas spared because the planner filters index results by type downstream, which is why this survived #6935 unnoticed. The attachment also survived a reopen, sinceschema.jsonstill listed the component under the ancestor.The issue left the drop-versus-detach decision open. Dropped is the answer here, and it is what makes this the exact mirror of
addSuperType: the components exist BECAUSE of the linkage, they index a property the subtype no longer even has, and a detachment alone would leave them on disk for the next reload to hook straight back up. Which buckets are no longer reached is read from the polymorphic cachesunlinkSuperTypehas just recomputed - never subtracted from the detached subtree - so a bucket a diamond still reaches through another surviving path keeps its sub-index. Because the propagated set isgetAllIndexes(true), the walk goes up the ancestor's own super types too, which is what catches a grandchild's buckets on the top ancestor's wrapper.#7889 - a null argument to remove()/removeAll() meant two things by position (sql, major)
Both are varargs but gated the whole operation on the FIRST argument being non-null, so a leading null silently discarded every argument after it while the same null one position later was acted on.
UPDATE ... SET tags = tags.remove(:a, :b)with a null first parameter left the property untouched and reported success.The issue offered two normalisations. The one taken here is the second: keep the guard at "there is an argument" and make the removal null-safe, rather than skipping nulls the way
append()does. A collection really can hold a null element, the loop already honoured a null in every position but the first, and skipping would delete a capability to fix an inconsistency.MultiValue.removeFromCollectionnow bindsObjects.equalsinstead ofiToRemove::equals- which throws fromObjects.requireNonNullbefore the first element is even looked at - so theremoveAll(x, null)NPE goes with it. The argument stays the receiver of the comparison, matching both the method reference it replaces andCollection.remove(Object).#7884 - the overlay's add side dedupped by presence (concurrency, critical)
#7042 gave the deletion side of post-compaction re-application a multiplicity comparison; the add side still probed
hasForwardEdgeand skipped a buffered add whenever the fresh base held any occurrence of the pair. With parallel edges that drops a real edge: one occurrence ofs -> tin the fresh run and a buffered add of a second one, and the second existed in neither the fresh base nor the overlay until the next compaction.The subtraction is the same one, read the other way round: exactly
max(0, fresh - before)of a pair's buffered additions were captured by the scan, and those - a prefix, so they are counted rather than probed - are the only ones skipped. The masked-as-deleted branch, thealreadyInFreshBasebookkeeping and the #6777 RID-reservation handling are unchanged. The residual this closes is struck fromGraphAnalyticalView.countBetweenForType's javadoc; #6777's RID reuse stays, and so does the clamp.#7881 - the transaction index overlay compared array-valued keys shallowly (audit, critical)
An index key is an
Object[]whose elements may themselves be arrays - aBINARYproperty is abyte[]- andArrays.equalscompares such an element by identity. #7109 routedDocumentIndexerthroughObjects.deepEqualsfor exactly that reason;TransactionIndexContext.IndexKeyandComparableKeywere left on the shallow form whileComparableKey.compareTocompared the very same elements by content throughBinaryComparator.compareToorders theTreeMapof pending entries andequals/hashCodekey theHashMapinside each of its values, so the outer lookup found the key and the inner one missed it.One correction to the issue's account of the damage: the in-transaction duplicate check does still fire, because the adjacent cross-sub-index sweep reads its per-key map by iteration rather than by lookup. That sweep is also what turned the real defect into something louder than a silent stale entry - it saw the stale ADD the REMOVE should have retired and refused a perfectly legitimate delete-and-reinsert of the same BINARY key in one transaction with a
DuplicatedKeyException.Rather than fix the two call sites, the policy now lives in one place,
com.arcadedb.index.IndexKeyEquality, which bothDocumentIndexerandTransactionIndexContextread from, so a third side cannot pick a fourth notion of equality.Tests
New:
Issue7896UnaliasedParenthesizedProjectionNameTest(7 tests; 4 fail before the fix)Issue7889NullArgumentPositionTest(6 tests; 5 failures + 1 NPE before the fix)Issue7881TransactionIndexArrayKeyEqualityTest(4 tests; 2 fail before the fix)Issue7892RemoveSuperTypeDetachesIndexesTest(5 tests; all 5 fail before the fix)DeltaOverlayCompactionAddDedupTest(6 tests; 4 fail before the fix)Regression runs, all green: the whole
com.arcadedb.graph.olappackage (302),com.arcadedb.schema+com.arcadedb.index(350 classes),com.arcadedb.query.sql(3133 tests). The one red in the SQL run wasSQLMethodPrecisionTest.instant("expected Millis but was Seconds"), a time-sensitive pre-existing flake that passes in isolation and is unrelated to anything here.Summary by CodeRabbit
Bug Fixes
remove()andremoveAll()handling when arguments includenull.Tests