Repository navigation
fix(#11145, #11146, #11051, #11029): labelpropagation seeds, personalizedPageRank direction/weights, algo config keys refused, case-insensitive SQL function factory - #11148
Conversation
…izedPageRank direction and weights, algo config keys refused, case-insensitive SQL function factory - #11145: algo.labelpropagation reads pre-assigned integer labels from seedProperty (Neo4j GDS convention: a seeded community reports its seed value, any other is numbered past the largest seed) and keeps them for the whole run with fixedSeeds, on both the OLTP and the Graph Analytical View path (new GraphAlgorithms.labelPropagation kernel taking initial labels and a fixed mask). Every algo.* procedure with a config/options map now refuses an unknown key instead of silently running with defaults. - #11146: algo.personalizedPageRank accepts a config map as second argument with relTypes, dampingFactor, maxIterations, tolerance, direction (OUT default, IN, BOTH) and weightProperty. One push-based iteration serves both paths; weights come from the view's edge columns or the edge records. - #11051: SQLFunctionFactoryTemplate routes every map access through one key() normaliser, so hasFunction, isSharedInstance, isBuiltIn and unregister agree with register/getFunctionInstance: CALL vector.l2Distance(...) and CALL geo.asText(...) resolve, and unregister removes the function and its aliases under any case. - #11029: already fixed by #11018 (literal-aware placeholder scan); wire-level regression added for the reported shape.
|
Caution Review failedThe pull request is closed.
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. |
|
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. |
|
Review (light pass, diff skimmed, not built or run): this is a maintainer PR with focused changes and regression tests for each issue (#11145, #11146, #11051, #11038). I saw no security concerns: there are no new dependencies, no I/O or reflection, and the config allow-list tightens input handling. Points to check:
Nice work overall. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | -36 |
🟢 Coverage 94.67% diff coverage
Metric Results Coverage variation Report missing for c65ba9a1 Diff coverage ✅ 94.67% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (c65ba9a) Report Missing Report Missing Report Missing Head commit (93ea1eb) 291914 241757 82.82% 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 (#11148) 300 284 94.67% 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%1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
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.
…Rank, pin seeds larger than the node count and negative seeds
|
Review of #11148 (skimmed the diff; I did not build or run the tests). Overall: The change is clean and well documented. The new tests cover each of the four issues. Points to check:
Security: I found no concerns. The PR adds no new dependencies, I/O, reflection or external input handling. The unknown-key rejection tightens input validation. Nice work. |
|
Review (quick skim, maintainer-authored PR): no security concerns found. Changes are confined to algo procedures, the function-factory key normalisation and tests. No new dependencies, I/O or reflection. Notes:
Overall this looks good. |
|
Review of #11148 (LPA seeds, personalized PageRank config, function-name case normalisation). Overall: the changes are clean and well tested. I found no blocking issues and no security concerns. What I checked
Points for you to consider
The code follows the CLAUDE.md conventions (final params, imports, tests per issue). |
…-11146-11051-11029 # Conflicts: # engine/src/main/java/com/arcadedb/query/opencypher/procedures/algo/AlgoHashGNN.java
|
Review (light, from skimming the diff): this is a maintainer PR with no security concerns that I could find. I found no process execution, deserialization, network access or new dependencies. The new config-key allow-list on the
Nothing blocking from my side. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #11148 +/- ##
==========================================
Coverage 79.33% 79.34%
- Complexity 4961 4964 +3
==========================================
Files 2324 2324
Lines 258937 259087 +150
Branches 56738 56772 +34
==========================================
+ Hits 205437 205580 +143
- Misses 32568 32575 +7
Partials 20932 20932 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…izedPageRank direction/weights, algo config keys refused, case-insensitive SQL function factory (#11148) * fix(#11145, #11146, #11051, #11029): labelpropagation seeds, personalizedPageRank direction and weights, algo config keys refused, case-insensitive SQL function factory - #11145: algo.labelpropagation reads pre-assigned integer labels from seedProperty (Neo4j GDS convention: a seeded community reports its seed value, any other is numbered past the largest seed) and keeps them for the whole run with fixedSeeds, on both the OLTP and the Graph Analytical View path (new GraphAlgorithms.labelPropagation kernel taking initial labels and a fixed mask). Every algo.* procedure with a config/options map now refuses an unknown key instead of silently running with defaults. - #11146: algo.personalizedPageRank accepts a config map as second argument with relTypes, dampingFactor, maxIterations, tolerance, direction (OUT default, IN, BOTH) and weightProperty. One push-based iteration serves both paths; weights come from the view's edge columns or the edge records. - #11051: SQLFunctionFactoryTemplate routes every map access through one key() normaliser, so hasFunction, isSharedInstance, isBuiltIn and unregister agree with register/getFunctionInstance: CALL vector.l2Distance(...) and CALL geo.asText(...) resolve, and unregister removes the function and its aliases under any case. - #11029: already fixed by #11018 (literal-aware placeholder scan); wire-level regression added for the reported shape. * review: explicit non-negative finite weight check in personalizedPageRank, pin seeds larger than the node count and negative seeds * review: java.util import order in the algo procedures * review: pin the refusal of a seed that leaves no room to number the unseeded nodes (cherry picked from commit 79ff674)
Summary
algo.labelpropagationgainsseedProperty(pre-assigned integer labels, Neo4j GDS convention: a seeded community reports its seed value, any other is numbered past the largest seed) andfixedSeeds(seeds keep their label for the whole run: semi-supervised classification, the documented use case). Works on both the OLTP path and the Graph Analytical View path via a newGraphAlgorithms.labelPropagationkernel overload taking initial labels plus a fixed-node mask. Everyalgo.*procedure that takes a config/options map (13 of them) now refuses an unknown key with the list of accepted ones, instead of silently running with defaults.algo.personalizedPageRank(source, {relTypes, dampingFactor, maxIterations, tolerance, direction, weightProperty}): config-map form as second argument,directionwithalgo.pagerank's names/values (OUT default, so the positional form answers as before),weightPropertyread from the view's edge columns or the edge records. A single push-based iteration now serves both paths (skips zero-score nodes, which is most of a personalized run early on).SQLFunctionFactoryTemplateroutes every map access through onekey()normaliser:hasFunction,isSharedInstance,isBuiltInandunregisternow agree withregister/getFunctionInstance, soCALL vector.l2Distance(...),CALL geo.asText(...)resolve, andunregisterremoves the function and its own aliases under any case.$Nscan); added a wire-level regression for the reported shape (Parse with 0 declared types,$Nonly inside literals/identifiers/comments -> ParameterDescription count 0).Shared helpers added to
AbstractAlgoProcedure:extractConfig(key allow-list),extractDirection(value, default)(moved fromAlgoPageRank, strict),loadGraphFromRecords.Docs updated in arcadedb-docs (community-detection, centrality, notes).
Tests
Issue11051FunctionNameCaseTest: every built-in agrees acrosshasFunction/isBuiltIn/isSharedInstance/getFunctionInstanceunder its canonical camelCase and upper-case spelling; Cypher CALL of camelCase built-ins; unregister of instance and class registrations under another case, aliases included.Issue11145LabelPropagationSeedsTest: report repro, fixed seeds classify both triangles, unfixed seeds, tie-break combination, invalid configs, unknown keys on LPA/pagerank/louvain, OLTP vs view parity.Issue11146PersonalizedPageRankDirectionTest: report repro (OUT/IN/BOTH), weights split proportionally, weights + direction, map vs positional parity, invalid configs, OLTP vs view parity.Issue11038BindCountAndNameLifecycleIT#literalDollarDigitsDeclareNoParameter.algo.*,graph.olap,function.sql, every test usingalgo.orCALL ns.fn) plus the postgresw IT: all green.