DELETE a table in Riak TS

旧时模样 提交于 2019-12-24 05:55:04

问题


I am attempting to drop an entire table in RIAK TS, but nothing seems to work. I have tried both "drop table" in a standard query so (using Python):

from riak import RiakClient
client = RiakClient(host = '127.0.0.1')
client.ts_query('ticks', 'DROP TABLE ticks')

but this gives me an error that DROP is not understood. An alternative would be to delete everything in the table using client.ts_delete('ticks', ["rows"]) but this seems to need me to specify the row keys. Is there a wildcard option for row keys, and if not, how do I get all row keys given the subquery size limits?


回答1:


As of Riak TS 1.4.0 DROP TABLE is not supported and there is no other means to delete tables.

Range deletes (or deleting more than one row) is also not yet supported however you can batch delete statements.

ALTER, DROP, and range deletes are all features on the Riak TS road map for future releases.



来源:https://stackoverflow.com/questions/40698599/delete-a-table-in-riak-ts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!