My top query calls sub-queries defined in different .gsql. If I set my top query to “DISTRIBUTED”, do I need to set all sub-queries to “DISTRIBUTED”?
Great question! Yes, you should also set the subqueries to be DISTRIBUTED.
Hi @VictorLee, I have two queries
b is a subquery that is invoked inside
a. Following your comment, I added the keyword DISTRIBUTED for the two queries and tried to add the queries into TigerGraph, and I got the following error:
Query 'b' is also a batch query, a batch query is not allowed to call another batch query.
The error is gone after I removed the keyword DISTRIBUTED from
I am just confused about your comment because it seems not correct.