Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.5.5
-
Untriaged
-
Unknown
Description
Post REDIRECT OFF the N1QL queries output is not redirected to Console.
Steps to recreate:
- Create a cluster with index, query services and load travel-sample bucket
- Create two files, q1.n1ql and q2.n1ql (attached below), each will have a set of N1QL queries
- Create another file main1.n1ql (attached below) and call above q1.n1ql by redirecting output to a file and then call q2.n1ql to write the result to a file
\REDIRECT q1_output.out;
|
\SOURCE q1.n1ql;
|
\REDIRECT OFF;
|
\SOURCE q2.n1ql;
|
\QUIT;
|
Execute main1.n1ql from CBQ
cbq -u Administrator -p password -engine=http://localhost:8091/ -f main1.n1ql |
The output of the above command is:
Connected to : http://localhost:8091/. Type Ctrl-D or \QUIT to exit. Path to history file for the shell : /root/.cbq_history \REDIRECT q1_output.out; \SOURCE q1.n1ql; |
q1_output.out file has output for q1.n1ql, but the output of q2.n1ql is not redirected to console.
Attachments
Issue Links
- is parent task of
-
MB-37231 CBQ shell redirect output overwritten when using multiple source files
- Closed