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
In 2020th you can use DSBulk to export or import data to/from CSV (by default), or JSON. It could be as simple as:
dsbulk unload -k keyspace -t table -u user -p password -url filename
DSBulk is heavily optimized for fast data export, without putting too much load onto the coordinator node that happens when you just run select * from table
.
You can control what columns to export, and even provide your own query, etc. See following blog posts for examples: