Description
This is related to CBSE-3291 - from which I have simplified the testcase considerably:
- have beer-sample
- create an index on `beer-sample`(name, country, code) where (type="brewery")
- prepare s1 from SELECT name, IFMISSINGORNULL(country,999), IFMISSINGORNULL(code,999) FROM `beer-sample` WHERE type = "brewery" AND name IS NOT MISSING;
- copy the encoded_plan
- bring down and restart the n1ql service
- pass a request to the engine using s1 as prepared and the encoded_plan copied earlier as the, well, encoded_plan.
The result set will be empty rather than having 1412 entries