I\'m new in cassandra, and I have to export the result of a specific query to a csv file.
I found the COPY
command, but (from what I understand) it allo
The person asking asked for CSV not text.
I did this hack get my results. It worked for me and I moved on with my day.
me:~/MOOSE2# echo "USE ████it; select * from samples_daily_buffer where dog_id=██48;" | cqlsh --cqlversion="3.4.4" cassandra0.stage.███████ | sed -e "s/
| */,/g" | sed -e "s/^ *//g" | tail -n +4 > ./myfile.csv