dsolow
December 9, 2020, 8:50pm
1
I’m moving from 2.5 to 3.1 – I see the following error in one of my queries:
The global accumulator "@@null" has not been declared
The error indicate an empty line. There is no accumulator named @@null anywhere in the query?
I also get:
(2, 2) Error: The feature is not supported yet in batch mode query.
For a static accumulator. My understanding is that “batch mode” means “distributed,” but this is a single node installation.
Any idea what’s going on?
Hi Daniel,
Is it possible to post your query here? So that we can see what is the cause to the issue?
Thanks.
dsolow
December 9, 2020, 9:46pm
3
minimal example to show that STATIC accumulators don’t work:
CREATE QUERY debugStatic() FOR GRAPH sayari SYNTAX v2 {
STATIC SetAccum<String> @@allEdges;
SetAccum<String> @@targetEdges;
IF ISEMPTY(@@allEdges) THEN
@@allEdges = { LOADACCUM ("/home/tigergraph/edges.txt", $0, ",", false)};
END;
}
This gives:
(2, 2) Error: The feature is not supported yet in batch mode query.
Please contact support@tigergraph.com for more details.
So how can I use this feature in Tigergraph 3? This is a single node installation.
Seems the keyword STATIC is not supported in syntax v2 query or DISTRIBUTED query yet.
Could you try to install the query in syntax v1?
Thanks.
dsolow
December 9, 2020, 9:54pm
5
It was working with syntax v2 in Tigergraph 2.5
Removing SYNTAX v2 still gives the same error. The error message makes me think that it thinks my query is in distributed mode – however it is not.
dsolow
December 9, 2020, 10:48pm
6
I’ve confirmed that this is only a bug in GraphStudio – I can install queries using STATIC accumulators via the CLI. That’s good enough for me, but there’s still a bug to fix here.
dhruva
January 4, 2021, 5:30pm
7
@Xinyu_Chang I’m having similar issue as well for following query.
Query:
CREATE QUERY temp3(SET<VERTEX> controlList) FOR GRAPH graph1 {
PRINT controlList.size();
}
GraphStudio Error:
(2, 8) Error: The feature is not supported yet in batch mode query.
Please contact support@tigergraph.com for more details.
GSQL Console:
GSQL > use graph graph1
GSQL > install query temp3
Semantic Check Fails: The query temp3 cannot be found!
Query installation failed!
Hi Dhruva,
Can you check with “ls” on the GSQL console to see if the query appears? I believe the query is not added due to the GraphStudio error you provided.
dhruva
January 4, 2021, 6:06pm
9
Ohok so graphstudio error didn’t save, so seems like I’m able to install and run from gsql console. However, graph studio error persists.
Hi Dhruva,
This seems to be an issue with our product for certain cases in query through GraphStudio. This has bene forwarded to the engineering team. Please use the GSQL console as a current workaround.