Cassandra selective copy

前端 未结 4 1144
轮回少年
轮回少年 2021-01-04 09:10

I want to copy selected rows from a columnfamily to a .csv file. The copy command is available just to dump a column or entire table to a file without where clause. Is there

4条回答
  •  感动是毒
    2021-01-04 09:33

    There are no way to make a where clause in copy, but you can use this method :

    echo "select c1,c2.... FROM keySpace.Table where ;" | bin/cqlsh > output.csv

    It allows you to save your result in the output.csv file.

提交回复
热议问题