Sub-query Won't Install

I am trying to install the following query:

CREATE QUERY evaluateUDF(VERTEX<V_Type> udf) FOR GRAPH MyGraph RETURNS(BOOL){ 
  BOOL res = FALSE;
  IF udf.id == "UDF1" THEN
    res = udf1();
  END;
  RETURN res; 
}

I already have udf1() installed in my TG instance. When I try to install this, it fails and does not give me any good feedback as to why. Any insights? Thanks!

So actually figured this one out, but for future reference, udf breaks the query. Instead, I used the parameter u and it installed just fine. Would be nice if the error message was more verbose though.

1 Like