Just like we detect recursion using bucket bindings, we can/must do recursion checks for static N1QL statements in eventing functions and fail deployment.
|For Gerrit Dashboard: MB-35394
|[MB-35394] N1QL recursion check for static N1QL statements 1. Compilation worker will return N1QL keyspace names 2. New N1QL bucket bindings will be added based on keyspace names. Recursion check validation will be performed with new bindings and app will not be deployed if cycle formed 3. At pause/undeploy remove N1QL bindings added to be regenerated at deployment time after compilation worker returns new bindings
|[MB-35394] N1QL recursion check for static N1QL statements
|MB-39713: N1QL recursion check for static N1QL statements