I am trying to export the data from the query using cbq shell but ending up with the below result always.
I also tried with the backslash but it did not work,
./cbq -o=“results.txt” -s="select name from employee_team";
Back ticks aren’t necessary for “_”. They are needed for “-”.
I tried your example and it works fine for me.
P:bin isha$ ./cbq -o="results.txt" -s="select name from employee_team";
Connected to : http://localhost:8091/. Type Ctrl-D or \QUIT to exit.
P:bin isha$ cat results.txt
Path to history file for the shell : /Users/isha/.cbq_history
select name from employee_team
{
"requestID": "17982245-3296-468f-b7ab-5fab11f2e730",
"signature": {
"name": "json"
},
"results": [
],
"status": "success",
"metrics": {
"elapsedTime": "5.550934ms",
"executionTime": "5.534735ms",
"resultCount": 0,
"resultSize": 0
}
}
Can you try running the query within a cbq session and see if it works ?