Execute Encoded Plan through N1QL

You can only use the encoded_plan in the REST API request, and this has to be alongside the prepared name. As an example,

curl “http://:8093/query/service” -H “content-type: application/json” -d ‘{“prepared”: “users_per_country”, “encoded_plan”: “…”}’

On a node where users_per_country does not exist, this will be created from the encoded plan.
Currently there is no way to use the encoded plan as directly as part of a N1QL statement.

HTH,
Marco