You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reference memory java $ unable to do math operators. Resulting in ref java memory #1723
begin;
let max = SELECT max(seqid) as id FROM Invoice;
let invoice = CREATE VERTEX Invoice (seqid) VALUES ($max.id[0].asInteger() + 1);
commit retry 100;
return $invoice;
Using this also works. I think arcade query is quite particular that we stores reference as QuerySet. That we need to do with first()/x[0]. The bug seems resulted in query transaction are not converting the value or reference the value. So they operate with the object QuerySet. Maybe, there is no default or dynamic operators that deal between sqlscript expression lines when doing operators
The MathExpression.execute() methods didn't handle cases where operands were InternalResultSet objects (which is what LET variables containing query results are
stored as). When the operator couldn't perform arithmetic on the InternalResultSet, it fell back to string concatenation.
Activity
gramian commentedon Sep 16, 2024
Reproduced, using:
gramian commentedon Sep 16, 2024
Here is a workaround:
Nonetheless, the above behavior needs to be fixed.
WRT the original code, this works:
gramian commentedon Sep 16, 2024
This seems to reproduce the problem minimally:
eisenhaus335 commentedon Sep 16, 2024
Using this also works. I think arcade query is quite particular that we stores reference as QuerySet. That we need to do with
first()/x[0]. The bug seems resulted in query transaction are not converting the value or reference the value. So they operate with the objectQuerySet. Maybe, there is no default or dynamic operators that deal between sqlscript expression lines when doing operatorslvca commentedon Jan 22, 2026
The MathExpression.execute() methods didn't handle cases where operands were InternalResultSet objects (which is what LET variables containing query results are
stored as). When the operator couldn't perform arithmetic on the InternalResultSet, it fell back to string concatenation.
lvca commentedon Jan 22, 2026
I added a helper method extractScalarFromResultSet() in MathExpression.java that:
fix: return scalar value from resultset in nested queries
fix: return scalar value from resultset in nested queries
chore(deps): bump org.neo4j.driver:neo4j-java-driver from 5.28.10 to …
chore(deps): bump jline.version from 4.0.9 to 4.0.10 [skip ci]
fix: return scalar value from resultset in nested queries
chore(deps): bump org.neo4j.driver:neo4j-java-driver from 5.28.10 to …
chore(deps): bump jline.version from 4.0.9 to 4.0.10 [skip ci]
chore(studio-deps-dev)(deps-dev): bump terser from 5.50.0 to 5.51.2 i…