无法执行截断 [英] Not able to perform truncate
问题描述
我们有一个使用案例,我们需要截断我们的数据并重新加载。但是截至目前似乎不支持截断,是否不支持?
我得到的是异常:
com.datastax.driver.core .exceptions.ServerError:ukgrsearch.cassandra.cosmos.azure.com/40.83.137.191:10350服务器端发生意外错误:目前尚不支持"TRUNCATE"。)
Hi Bikas,
支持的当前列表
CQL命令如下:
- CREATE KEYSPACE
- CREATE TABLE
- ALTER TABLE
- USE
< li style =""> INSERT- SELECT
- UPDATE
- BATCH - 仅支持未记录的命令
- DELETE
以后将支持TRUNCATE命令。
问候,
Mike
We have a use case, where we need to truncate our data and reload. But seems truncate is not supported as of now, is it not supported?
I am getting below exception:
com.datastax.driver.core.exceptions.ServerError: An unexpected error occurred server side on ukgrsearch.cassandra.cosmos.azure.com/40.83.137.191:10350: 'TRUNCATE' is not supported yet.)
解决方案Hi Bikas,
The current list of supported CQL Commands are as follows:
- CREATE KEYSPACE
- CREATE TABLE
- ALTER TABLE
- USE
- INSERT
- SELECT
- UPDATE
- BATCH - Only unlogged commands are supported
- DELETE
The TRUNCATE command will be supported in the future.
Regards,
Mike
这篇关于无法执行截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!