Skip to content

fix(#5884,#5885): validate argument count for SQL functions and methods before execution - #5969

Merged
lvca merged 4 commits into
mainfrom
fix-5884-5885-function-method-arity
Aug 8, 2026
Merged

lvca merged 4 commits into
mainfrom
fix-5884-5885-function-method-arity

Conversation

@lvca

@lvca lvca commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

Fixes #5884 and #5885: 43 SQL functions and 19 SQL methods answered a call with too few arguments with a raw JDK exception (ArrayIndexOutOfBoundsException, NullPointerException, ClassCastException, NegativeArraySizeException) instead of a validation error.

The infrastructure for this already existed (Function.checkArity() / FunctionArity, added for #5484/#5602/#5627) but was never invoked from the SQL-parser dispatch points these two issues cover. This is a chokepoint fix rather than 62 separate hand-written guards:

  • FunctionCall.execute() and MethodCall.execute() (the two SQL-parser dispatch points for function() / .method() calls) now call checkArity() before invoking the function/method.
  • FunctionAggregationContext (a second, less obvious dispatch path used both for real aggregate functions and for any function projected with no FROM clause) gets the same check, once per statement rather than per row.
  • SQLMethod gained the same getMinParams()/getMaxParams()/checkArity() contract Function already had; AbstractSQLMethod already stored the right minParams/maxParams for almost every method, they just weren't enforced.

A wrong argument count is now a CommandSemanticException (HTTP 400), matching how it already worked for the functions that got this right (bellmanFord(), circle(), vector.fuse()).

Two sub-cases handled differently

  • Missing arguments (both issues): fixed by declaring correct getMinArgs()/getMaxArgs() (functions) or constructor bounds (methods) and wiring the enforcement described above.
  • Not actually an arity bug: bothE/bothV/inE/inV/outE/outV legitimately take zero required arguments (labels are optional). Their NullPointerException came from SQLFunctionMove.v2e()/e2v() dereferencing a null receiver unconditionally, unlike v2v() which already null-checks. Fixed to match v2v().
  • Negative values (19 of 60 SQL methods throw raw JDK exceptions on missing or negative arguments (companion to #5884) #5885): left(), right(), charat() had the right argument count but no guard on the value. They now clamp/return-null for out-of-range input the way MySQL's LEFT/RIGHT do, instead of throwing StringIndexOutOfBoundsException. substring(), indexof(), lastindexof() turned out to already tolerate negative values safely on inspection - verified rather than "fixed" a second time.

Fallout from turning on enforcement

Running the full test suite after wiring the checks surfaced a handful of other pre-existing methods whose declared minParams/maxParams didn't match what their execute() actually needed/tolerated - previously invisible because nothing enforced the declaration. Fixed the same way: ifnull (method), sort, transform, toUpperCase, toLowerCase.

Test plan

  • Added FunctionArgumentValidationRegressionTest - sweeps all 43 listed functions, driven off each function's own declared getMinArgs()/getMaxArgs(), asserting too-few-arguments raises CommandSemanticException (not a raw exception), and that the six zero-arg graph functions tolerate a missing receiver gracefully.
  • Added MethodArgumentValidationRegressionTest - same sweep for all 19 listed methods (too few / too many args), plus dedicated negative-value tests for left(), right(), charat().
  • Full engine module test suite: 10,963 tests / 1,314 classes, 0 failures, 0 errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X1y2csftaVgtrNwgSNETzL

…efore execution

Both FunctionCall and MethodCall (the SQL parser's dispatch points for
function()/.method() calls) now call the existing checkArity() contract
before invoking a function or method, so a wrong argument count is
reported as a CommandSemanticException (HTTP 400) instead of whatever raw
JDK exception (ArrayIndexOutOfBoundsException, NullPointerException,
ClassCastException, NegativeArraySizeException) the unguarded execute()
happened to throw. The aggregate-projection dispatch path
(FunctionAggregationContext, used for aggregate functions and any
function projected with no FROM) gets the same check, since it is a
second entry point functions can be reached through.

The 43 functions and 19 methods listed in the two issues now declare
correct getMinArgs()/getMaxArgs() (functions) or minParams/maxParams
(methods) bounds; most methods already stored the right numbers but had
no runtime enforcement. Fixing the enforcement surfaced a few more
pre-existing bound mismatches (ifnull, sort, transform, toUpperCase,
toLowerCase) that were silently tolerating a wrong argument count.

bothE/bothV/inE/inV/outE/outV take zero required arguments, so the
NullPointerException they threw was not an arity bug: SQLFunctionMove's
v2e()/e2v() dereferenced a null receiver unconditionally, unlike v2v()
which already null-checked. Both now match v2v().

Negative-value range guards (a different class of bug: the argument
count is right, the value is not) were added to left(), right() and
charat(), which clamp/null out-of-range input the way MySQL's LEFT/RIGHT
do instead of throwing StringIndexOutOfBoundsException.
@mergify

mergify Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@codacy-production

codacy-production Bot commented Aug 8, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

🟢 Coverage 100.00% diff coverage

Metric Results
Coverage variation Report missing for afeb0dd1
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (afeb0dd) Report Missing Report Missing Report Missing
Head commit (8c4eb4a) 185802 131136 70.58%

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 (#5969) 81 81 100.00%

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.

@claude

claude Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review

Solid, well-scoped chokepoint fix. Reviewed the diff in full (all 48 changed files) plus the surrounding context for each touched execute()/getSyntax() to cross-check the new getMinArgs/getMaxArgs/minParams/maxParams declarations against what the code actually reads. Summary below.

What's good

  • Correct choice of chokepoint. Wiring checkArity() into FunctionCall.execute(), MethodCall.execute(), and FunctionAggregationContext's constructor covers all three dispatch paths a function/method call can take, instead of 62 hand-written guards. This matches the CLAUDE.md guidance to reuse existing components (FunctionArity/Function.checkArity already existed from [OpenCypher] abs() returns HTTP 500 for invalid argument instead of client-facing error #5484/[Misc] OpenCypher follow-ups from #5484: arity-guard blind spot, locale-dependent name folding, unimplemented registered functions #5602/[Cypher] Procedure.validateArgs() still reports a wrong argument count differently from functions #5627).
  • The bounds I spot-checked against their execute() bodies are accurate, e.g.:
    • SQLFunctionPercentile/ts.percentile (variadic quantiles, min 2, no max) matches for (int i = 1; i < params.length; ...).
    • SQLFunctionAstar/Dijkstra (3-4 args) and SQLFunctionShortestPath (2-5 args) match the highest params[n] index each reads.
    • SQLFunctionConcat's max of 2 is correct even though "concat" sounds variadic - it's a row-at-a-time aggregate function ((field, [delimiter]) accumulated across apply() calls), not a multi-arg string concatenation.
    • IfNull/IfEmpty function and method variants agree on 2-3 / 1 args respectively with their params.length == 3 branches.
  • SQLMethodTransform bounds fix is the most valuable find in the "fallout" bucket. The old super(NAME, 0, 0) declared zero arguments allowed, while execute() treats params as a variadic list of method names to chain - i.e. every real-world use of transform('toUpperCase') etc. would have been rejected the moment enforcement turned on. Widening to (0, -1) is the right fix, and it's exactly the kind of bug this PR's own infrastructure change would otherwise have introduced as a regression.
  • v2e/e2v null-guard correctly mirrors the null-check already present in v2v() rather than inventing a new pattern.
  • left()/right()/charat() clamping matches documented MySQL semantics and is a better UX than throwing StringIndexOutOfBoundsException for out-of-range input.
  • Regression tests are driven off the declared bounds themselves (getMinArgs()/getMaxArgs()/getMinParams()/getMaxParams()) rather than a hardcoded argument count per function/method, so a future regression in the declared bounds is caught automatically instead of only by re-running the original manual sweep. Good design.
  • Confirmed CommandSemanticException is mapped to HTTP 400 in AbstractServerHttpHandler, matching the PR description's claim.

Things worth a look (none blocking, in my read)

  1. SQLMethodCharAt.execute() also gained a value == null guard (previously only params[0] == null was checked), which is a real fix - the old code would have thrown NPE on null.toString() for a null receiver. It's not obviously covered by a new test though: MethodArgumentValidationRegressionTest always calls methods against a literal 'abc' receiver, so the value == null branch isn't exercised. Worth adding a one-line case (e.g. SELECT null.charat(0) AS r returns null) if it isn't covered elsewhere in the existing suite.
  2. FunctionAggregationContext's constructor now calls checkArity() eagerly, once per statement. This is a second, less-obvious dispatch path (used for aggregate functions and any function projected with no FROM), so it's worth double-checking it doesn't reject legitimate zero/variable-arg aggregate calls that don't route through FunctionCall.execute() (e.g. anything analogous to count(*)). The PR description says the full engine suite (10,963 tests) passed with 0 failures, which is good evidence, but this path is subtle enough that it might deserve its own explicit regression test alongside the two new test classes, rather than relying on incidental coverage from the existing suite.
  3. Minor duplication: FunctionArgumentValidationRegressionTest and MethodArgumentValidationRegressionTest each define their own private placeholders()/consume() helpers that are byte-identical. Given CLAUDE.md's "don't introduce abstractions beyond what the task requires," two near-identical private helpers in sibling test classes is a reasonable call, not a real issue - just flagging in case a shared test-utility class already exists elsewhere in the test tree that these could reuse instead.

Security / performance

No concerns. The added checks are O(1) comparisons on already-computed argument arrays/counts, done once per call (or once per statement for the aggregation path) rather than per row, so no measurable overhead. No new dependencies, no new surface for injection or resource exhaustion - if anything this closes off a minor information-disclosure vector (malformed queries previously could surface raw JDK exceptions with internal stack details rather than a clean validation error).

Test coverage

Good. Both regression tests are parameterized off the actual affected-function/method lists from the two issues, check both "too few" and (for methods) "too many" arguments, and include targeted tests for the negative-value clamping behavior. The everyAffectedFunctionIsAccountedFor test in the function suite is a nice safety net against silently dropping a function from the list.

…t() receiver

Two follow-ups from code review on PR #5969:

- FunctionAggregationContext's new checkArity() call was only exercised by
  the no-FROM synthetic-aggregation cases in the existing tests. Add a test
  that runs stddev()/count(*) through a real GROUP BY over actual records,
  so the true aggregation dispatch path is covered too.
- SQLMethodCharAt.execute() gained a value == null guard alongside the
  existing params[0] == null one; the only existing test exercised both
  as null together. Add a case that isolates a null receiver with a
  non-null index, which used to throw NullPointerException on
  value.toString() before this guard existed.
@claude

claude Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review

Went through this in detail — the chokepoint approach (enforcing at the two SQL-parser dispatch points plus the aggregate-projection path, rather than 62 hand-written guards) is the right shape for this fix, and it reuses the existing Function.checkArity()/FunctionArity infrastructure cleanly instead of reinventing it for methods.

Correctness checks performed (I couldn't run mvn verify in this sandbox, so I traced these by hand instead of trusting the PR's own numbers):

  • Spot-checked every new getMinArgs()/getMaxArgs() declaration against its execute() body (e.g. astar/dijkstra read params[2]/params[3] conditionally → 3–4 matches; format does params.length - 1 → min 1, unbounded matches; ifempty/ifnull read params[2] only when params.length == 3 → 2–3 matches; SQLFunctionMedian correctly overrides its parent SQLFunctionPercentile's (2, MAX) down to (1,1) since the quantile is fixed at construction).
  • SQLMethod gained two new non-default abstract methods (getMinParams()/getMaxParams()). Confirmed AbstractSQLMethod is the only implementer in the whole repo (grep -rn "implements SQLMethod"), so this doesn't break any wire-protocol module or other implementer.
  • SQLFunctionMove.v2e()/e2v() null-guards now mirror v2v() exactly — good consistency fix, not just a band-aid.
  • SQLMethodLeft/Right/CharAt clamping matches MySQL LEFT/RIGHT semantics as claimed, and the bounds checks look correct for negative/out-of-range indices.
  • FunctionAggregationContext's constructor-time checkArity() is a sound place for it (argument count is invariant across apply() calls for all rows in the statement), and I verified real GROUP BY aggregation and the no-FROM synthetic path are both exercised by the new tests, not just one of them.

Minor observations, non-blocking:

  1. FunctionAggregationContext.java:44 allocates new Object[this.params.size()] purely to hand checkArity a length — since this runs once per statement (not per row), it's not a performance concern, just a slightly indirect way to pass a count. Not worth blocking on.
  2. Test coverage checks "too few" and "too many" args for methods, but only "too few" for functions (FunctionArgumentValidationRegressionTest). Given MethodCall's isGraphFunction() branch also now calls function.checkArity() for .method()-call syntax (as opposed to function()-call syntax), it might be worth a quick regression test through that path too, though the underlying checkArity logic is shared and already covered.
  3. SQLMethodTransform's bound changed from (0, 0) to (0, -1) — worth flagging in review since this was previously an explicit (if wrong) declaration rather than an unset default, so it's a deliberate behavior widening, not just filling in a gap. The execute() body already tolerated variadic params, so this looks like the right fix, just calling it out since it's a slightly different category from the rest ("fixing a wrong explicit value" vs. "declaring a missing one").

No security or dependency concerns — this only tightens input validation, and there's no new dependency. Test coverage is solid: both regression test classes are driven off the declared bounds themselves rather than hardcoded per-function counts, so a future regression in the declaration (not just the enforcement) will also be caught.

Nice fix overall — the "chokepoint, not 62 guards" framing holds up under inspection.

…hod-call path

Second code-review pass on PR #5969 pointed out that MethodCall's
isGraphFunction() branch (the <expr>.out()/.in()/.both()/... method-call
syntax, as opposed to the out()/in()/both() function-call syntax the
existing tests exercise) also gained a checkArity() call, but nothing
drove a query through it. Add a minimal traversal to confirm it still
works with correct arguments.
@claude

claude Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review

This is a well-scoped chokepoint fix: routing both SQL-parser dispatch points (FunctionCall.execute(), MethodCall.execute()) plus the aggregate-projection path (FunctionAggregationContext) through the existing checkArity()/FunctionArity contract, rather than 62 hand-written guards. I traced every one of the 43 functions and 19 methods whose getMinArgs()/getMaxArgs() (or constructor minParams/maxParams) bounds changed against what their execute() actually reads from params[], and all of them are consistent (e.g. SQLFunctionAstar/Dijkstra at min 3/max 4 matches params[0..3], SQLFunctionShortestPath min 2/max 5 matches params[0..4], time-series functions like Lag/Lead/Interpolate/Rate all line up). Nice touch that the new regression tests are driven off each function's/method's own declared bounds instead of hand-picked argument counts, so a future regression in the declaration itself gets caught, not just the originally reported cases.

The v2e()/e2v() null-guard fix in SQLFunctionMove correctly mirrors the existing v2v() pattern, and the left()/right()/charat() negative-value clamping matches MySQL semantics as described.

Minor/non-blocking observations

  1. FunctionCall.java allocates paramValues.toArray() twice (FunctionCall.java:130 for checkArity, then again inside whichever branch calls execute()). MethodCall.java's equivalent change stores it once in a methodParams local and reuses it for both the arity check and execute() - worth applying the same pattern in FunctionCall.java for consistency and to avoid the extra array allocation on every function call (minor, but the project's stated performance/GC-pressure mantra makes it worth a one-line fix).

  2. SQLFunctionCount.getMinArgs()'s javadoc is inaccurate (pre-existing, not touched by this PR): it says "count(*) carries no argument at all," but the parser actually represents count(*) as a 1-element params list (a synthetic expression with suffix.star = true - see FunctionCall.isStar(), which requires params.size() == 1). This is harmless today only because getMaxArgs() is 1, so checkArity still passes - but since FunctionAggregationContext now calls checkArity unconditionally in its constructor, a future edit that "corrects" getMinArgs()/getMaxArgs() based on that comment (e.g. tightening to exactly 0) would silently break count(*) through the aggregate path. Might be worth fixing the comment while this area has fresh attention, even though the file isn't part of this diff.

  3. MethodCall.execute()'s isGraphFunction() branch calls function.checkArity(...) without a null-check on function (MethodCall.java:107-108), unlike the sibling FunctionCall.execute() which guards with if (function != null). This isn't a new bug introduced by this PR (the old code would have NPE'd the same way a few lines later inside function.execute(...)), and in practice bidirectionalMethods names always resolve to a registered function, so it's very low risk - just flagging for completeness since the new call is now the first thing to touch a possibly-null function.

  4. Docs/comments throughout are clear and the "why" is well explained (e.g. the #5884/#5885 cross-references, the MySQL LEFT/RIGHT justification for clamping). Good adherence to the repo's comment-only-for-non-obvious-why guidance.

Test coverage

Solid - FunctionArgumentValidationRegressionTest and MethodArgumentValidationRegressionTest sweep all affected functions/methods off their own declared bounds, plus targeted tests for the aggregate dispatch path (stddev()/count(*) through real GROUP BY), the MethodCall graph-function branch, and the negative-value/null-receiver edge cases for charat()/left()/right(). I did not re-run the suite myself (sandboxed environment blocked mvn), but the changes I traced by hand are internally consistent with the reported "10,963 tests, 0 failures" run.

Overall: solid, well-tested fix. The three points above are minor and none are blocking.

…le count(*) doc

Third code-review pass on PR #5969:

- FunctionCall.execute() and MethodCall.execute()'s isGraphFunction()
  branch each called paramValues.toArray() once for checkArity() and
  again inside whichever execute() branch fired. Compute it once and
  reuse it, matching the pattern MethodCall's SQLMethod branch already
  used.
- MethodCall's isGraphFunction() branch now guards against a null
  function lookup before calling checkArity() on it, matching
  FunctionCall's existing null check instead of relying on execute()
  to NPE a few lines later.
- SQLFunctionCount.getMinArgs()'s comment claimed count(*) carries no
  argument at all; FunctionCall.isStar() actually requires a single
  synthetic argument to recognize the star form. Left uncorrected, a
  future edit trusting that comment could tighten the bound and break
  count(*) through the aggregate-projection path this PR now enforces
  checkArity on unconditionally.
@claude

claude Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review

Solid, well-scoped fix. I traced the dispatch chokepoints (FunctionCall.execute, MethodCall.execute, FunctionAggregationContext) and a broad sample of the per-function/method arity declarations against their execute() bodies; everything checked lines up.

Correctness

  • FunctionArity.effectiveMax() correctly normalizes the two "unbounded" spellings (-1, used by variadic methods like transform/append/include, and Integer.MAX_VALUE), so checkArity() and the new MethodArgumentValidationRegressionTest's skip condition (maxParams < 0 || maxParams == Integer.MAX_VALUE) agree.
  • SQLFunctionCount.getMinArgs() == 0 with getMaxArgs() == 1 correctly covers both count() (0 params) and count(*) (1 synthetic param per FunctionCall.isStar()) - the updated Javadoc explaining this is a nice catch, since the old comment ("carries no argument at all") would have misled someone into tightening the bound later.
  • SQLFunctionMove.v2e()/e2v() null-guards now mirror v2v() exactly - good, since these are reached via SQLQueryEngine.foreachRecord, which can hand a null receiver through.
  • Verified independently that substring()/indexof()/lastindexof() do already tolerate negative offsets (String.indexOf(str, negativeIdx) treats negative as 0; SQLMethodSubString explicitly clamps from < 0), so not "fixing" those a second time is correct, not an oversight.
  • MethodCall's isGraphFunction() branch gained a function == null guard before checkArity() - matches FunctionCall's existing null check and is exercised by the new graphFunctionAsMethodCallSyntaxStillWorksWithCorrectArguments test.
  • FunctionAggregationContext moving checkArity() into the constructor (once per group, confirmed by how AggregateProjectionCalculationStep/StreamingAggregationStep cache the AggregationContext per alias) rather than per-row is the right call performance-wise, and the follow-up commit adding a real GROUP BY test (not just the no-FROM synthetic path) closes a real gap in coverage of that constructor.

Minor / non-blocking

  • FunctionCall.execute() computing functionParams once and reusing it for checkArity() + execute() (4th commit) is a nice, easy-to-miss perf win - good that a review pass caught the redundant toArray() allocations before merge.
  • SQLMethodTransform's bound change from (0, 0) to (0, -1) is consistent with the existing -1 = "unbounded" convention used elsewhere (SQLMethodAppend, SQLMethodInclude, etc). One pre-existing wrinkle, not introduced by this PR: AbstractSQLMethod.getSyntax()'s default implementation builds the optional-param bracket via for (int i = minParams; i < maxParams; i++), which is a no-op when maxParams == -1, so an un-overridden variadic method would print a syntax string missing the variadic marker. Not a regression here since SQLMethodTransform overrides getSyntax() explicitly, but worth a follow-up if more methods adopt -1 without overriding it.

Test coverage

FunctionArgumentValidationRegressionTest and MethodArgumentValidationRegressionTest are driven off each function/method's own declared bounds rather than hardcoded counts, which is the right shape here - a future declaration regressing back to unenforced defaults gets caught automatically rather than relying on someone re-running the original bug sweep. The everyAffectedFunctionIsAccountedFor sanity check is a good touch to keep the two lists honest against the issue's original 43/19 counts.

Security / performance

No concerns. The added checks are O(1) integer comparisons on paths that already allocate the params array; no new dependencies. Arity failures now consistently surface as CommandSemanticException (HTTP 400) instead of leaking raw JDK exceptions through the two dispatch chokepoints.

Nothing blocking from my pass - a nice chokepoint-level fix rather than 62 scattered guards, and the description accurately reflects the diff.

@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.76543% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 68.24%. Comparing base (c325ccb) to head (8c4eb4a).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...adedb/query/sql/method/string/SQLMethodCharAt.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5969      +/-   ##
==========================================
+ Coverage   68.18%   68.24%   +0.06%     
==========================================
  Files        1797     1797              
  Lines      153223   153459     +236     
  Branches    32448    32479      +31     
==========================================
+ Hits       104477   104733     +256     
+ Misses      35341    35320      -21     
- Partials    13405    13406       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lvca lvca self-assigned this Aug 8, 2026
@lvca lvca added this to the 26.9.1 milestone Aug 8, 2026
@lvca
lvca merged commit aac25a4 into main Aug 8, 2026
39 of 44 checks passed
@lvca
lvca deleted the fix-5884-5885-function-method-arity branch August 8, 2026 19:24
tae898 added a commit to humemai/arcadedb-embedded-python that referenced this pull request Aug 11, 2026
Brings the fork up to 26.9.1-SNAPSHOT, which carries the August fixes we
filed: ArcadeData#5711 (HTTP row truncation), ArcadeData#5745/ArcadeData#5788 (GAV), ArcadeData#5746 (Cypher through
GAVFusedChain), ArcadeData#5747 (close-time HNSW rebuild, our PR ArcadeData#5787), ArcadeData#5796 (Redis
port), ArcadeData#5824 (@Rid IN replanned as FETCH FROM RIDs). All verified against
the shipped jars before this merge.

Conflicts resolved:
- 15 .github files kept deleted. Upstream CI the fork does not run; we carry
  only the five Python workflows.
- test-python-examples.yml took upstream's two dependabot SHA bumps
  (setup-java v5.6.0 -> v5.7.0, cache v4.3.0 -> v6.1.0), staying aligned
  with the SHA-pinning their review requires.
- test_server_wire_protocols.py kept ours. Upstream carries the version from
  PR ArcadeData#5807, which still has the redis xfail; ArcadeData#5796 is fixed and the marker
  was retired in a5d82c0.

Behaviour changes to watch, none of which renamed or removed a JPype-facing
API: ArcadeData#5969 now validates SQL function and method arity, ArcadeData#5908 makes sum/avg
reject non-numeric input, ArcadeData#5983 bounds regex backtracking, and ArcadeData#5786 caps
vector.neighbors groupBy output per index.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0173qFfapQBiGxaV7apSZ4X8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

43 of 145 SQL functions throw raw JDK exceptions on wrong arity (AIOOBE/NPE/NegativeArraySize) instead of a validation error

1 participant