Repository navigation
fix: #9146 #9125 #9124 #9123 BigInteger precision, index delete bounds, r:R subtypes, streaming allShortestPaths - #9160
Conversation
…not the truncated one A bound no BYTE/SHORT/INTEGER/LONG key equals (12.5, 1e19, 3e9 on an INTEGER) is mapped onto the key that bounds the same set, inclusive, or matches nothing, in SQL (FetchFromIndexStep), openCypher (NodeIndexRangeScan) and the fluent Select API. The SQL BETWEEN scan no longer converts a numeric bound to an integer value's class. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The unconstrained layered BFS recorded the parent vertex once per relationship and rebuilt every hop with the first relationship found between the two vertices, so N parallel relationships produced N rows of the same path. Parents are now recorded once and the back-tracking branches on every relationship joining each hop (looked up through the neighbour-filtered edge iterators). The RETURN allShortestPaths(...) expression form now shares the same evaluators and returns every co-shortest path instead of a single one. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ression timeout, self-pair and hop-bound tests Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…l-chain timeout test, diamond with a parallel pair Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…arrays, shorter comment Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…odacy) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (16)
✨ 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 |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 1 minor |
| ErrorProne | 2 high |
| CodeStyle | 1 minor |
🟢 Metrics 133 complexity
Metric Results Complexity 133
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 of #9160Reviewed the four fixes on top of the stacked #9126 / #9120 commits, focusing on the code that is new in this PR ( Worth addressing
Minor
Positives
No security concerns found. Nothing blocking beyond confirming item 1 is an intentional trade-off. 🤖 Generated with Claude Code |
…er-match and two-level subtype tests
|
Review round 1: fixed the ClassCastException guard on non-numeric BETWEEN bounds (#2), added comments for the Long.MIN_VALUE threshold and the ignored scan order, plus tests for a write clause after the match (#3, no disturbance) and a two-level subtype chain. #1 is not a regression: the RETURN expression form already built the full list on main before this PR (#8995), and bounding it is a separate change. |
ReviewOverall this is a careful, well-tested set of fixes. I read the diff of the four issues plus the stacked #9021/#8995 commits. No blocking problems found; notes below. What looks good
Points worth a look
Process
|
|
Review round 2. Correction to my earlier comment: on main the RETURN allShortestPaths(...) expression returned a single path, so the all-paths list in expression position is a behaviour change that comes with the stacked #8995 commits (#9120), not with the four fixes here. It needs a release-note mention and possibly a cap; that belongs to #9120 and is left there. Also changed: createCursor keeps its parameter final, and a test covers fractional bounds at the edges of the INTEGER key range. Not changed: the shared inexact-bound helper and the seek holder class (IntegralKeyBound and FetchFromIndexStep belong to the stacked #9126), and Thread.interrupted() matches the existing pattern in the class. |
|
Review of #9160 Overall this is solid work: each of the four fixes has a focused regression test, the explicit-stack Worth addressing
Code quality / style
Performance
Tests
Security The two fixes in |
|
Review round 3. Fixed: braces around the TYPE_DECIMAL case (#7). Not changed: #1 is the stacked #8995 behaviour (see the previous comment); #3 to #6 are in IntegralKeyBound / FetchFromIndexStep / SelectExecutor from the stacked #9126 and are better handled there; #2 (a vertex deleted between pulls) matches how every other lazily resolved step behaves in this engine; #8 is a release-note item. The BETWEEN case on SHORT and BYTE is covered by the DELETE tests, which run every integral key type. |
|
Note: Issue8872DecimalLiteralDigitsTest (indexedAndUnindexedDoubleAgreeOnALongLiteral, updateDeleteAndInOnIndexedDecimalAndDouble) fails on a clean main checkout as well, so it is not caused by this PR. |
|
Review of #9160 I read the diff and did not build it or run the tests. Overall this is a careful change with good test coverage. I found no blocking bugs, only the points below. What looks good
Points to consider
Conventions check
Nothing here blocks the merge. Items 1 and 2 are the ones I would address first. 🤖 Generated with Claude Code |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9160 +/- ##
============================================
+ Coverage 76.79% 76.81% +0.01%
Complexity 3914 3914
============================================
Files 2121 2123 +2
Lines 211357 211724 +367
Branches 44788 44892 +104
============================================
+ Hits 162317 162637 +320
- Misses 31664 31672 +8
- Partials 17376 17415 +39 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ReviewI read the diff and the surrounding code. I did not run the tests, so my comments are from reading only. The unstacked changes (#9146, #9125, #9124, #9123) look correct and well tested. A few points are worth a look before merge. Correctness and risk
Design and style
Tests
ProcessThe PR is stacked on #9126 and #9120. Once those merge, the diff shrinks and it should be rebased and the tests re-run. Overall: approve once point 1 is answered. The rest are nits or follow-ups. |
…it via #9160) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 1 minor |
| ErrorProne | 2 high |
| CodeStyle | 1 minor |
🟢 Metrics 133 complexity
Metric Results Complexity 133
🟢 Coverage 89.27% diff coverage · -5.78% coverage variation
Metric Results Coverage variation ✅ -5.78% coverage variation Diff coverage ✅ 89.27% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (50657bd) 211357 179730 85.04% Head commit (433ffcb) 244328 (+32971) 193648 (+13918) 79.26% (-5.78%) 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 (#9160) 382 341 89.27% 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.
Fixes #9146, #9125, #9124, #9123.
BigIntegeroutside the long range written to an undeclared property is stored as an exact DECIMAL instead of being rounded to a DOUBLE (in-range values keep narrowing to Integer/Long).DELETE FROM INDEX:... WHERE key ...maps a fractional or out-of-range bound onto the integral key that bounds the same keys (reusesIntegralKeyBound). Two bugs in the same step turned up and are fixed: it never removed an entry (nested key array passed toindex.remove), and=,<,<=removed the wrong key ranges.WHERE r:Ron a relationship is polymorphic like the pattern[r:R].MATCH p = allShortestPaths(...)produces its paths on demand (explicit-stack iterator), soLIMITand streaming consumers stop the enumeration and the path list is bounded by the batch (the BFS distance and predecessor maps still grow with the visited vertices). TheRETURN allShortestPaths(...)expression still materializes.Also noted:
BETWEENon an integral value is now evaluated against numeric bounds without converting them to the value's class (part of the stacked #9021 change).Stacked: this branch carries the commits of #9126 (#9021, needed by #9125) and #9120 (#8995, needed by #9123), which are still open. The all-paths result of the
RETURN allShortestPaths(...)expression comes from #9120 and deserves a release note. They drop out of the diff once those merge.Tests: new
Issue9146*,Issue9125*,Issue9124*,Issue9123*; the #8995 timeout test now names the streaming step. 6506 engine tests of the affected packages green.Summary by CodeRabbit
longrange are preserved as exact decimals instead of being rounded.