Hello, I am getting an error with a POST-ACCUM that I am attempting when doing a two-hop query in the v2 syntax. Here is the code snippet:
Start = SELECT s FROM Start:s-(:e)-:m-(:e2)- Patient:t POST-ACCUM IF t.@d_tx ==0 THEN t.@score = (1/p) *1 ELSE IF t.@d_tx == 1 THEN t.@score = t.score ELSE t.@score = (1/q) * 1 END;
I am currently getting a “unsupported: POST-ACCUM clause is not local” error when trying to install. Is this the desired behavior/is there a way to get around this in one SELECT statement? Thanks!