Description
After specifying an output file with "\REDIRECT" and then providing two separate source files with "\SOURCE", only the last files queries are logged in the output file.
Steps to recreate :
- Create a cluster with query and the travel-sample bucket.
- Create two files, q1.n1ql and q2.n1ql (attached below)
- In cbq, redirect the output to a file with \REDIRECT <filename>
- Use \SOURCE q1.n1ql;
- Use \SOURCE q2.n1ql;
After this, the redirected file contains only the output of q2.n1ql as opposed to both sets of queries from both the files.