无法执行截断 [英] Not able to perform truncate

查看:100
本文介绍了无法执行截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用案例,我们需要截断我们的数据并重新加载。但是截至目前似乎不支持截断,是否不支持?


我得到的是异常:


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆