Cassandra selective copy

前端 未结 4 1114
轮回少年
轮回少年 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:54

    No, there is no built-in support for a "where" clause when exporting to a CSV file.

    One alternative would be to write your own script using one of the drivers. In the script you would do the "select", then read the results and write out to a CSV file.

提交回复
热议问题