CQLSH“DESCRIBE TYPES”命令无效

时间:2016-10-14 20:51:58

标签: cassandra cql

我是CQLSH的新手。我想在键空间中看到所有用户定义的类型,然后我找到了“DESCRIBE TYPES”命令。

但是当我跑步时,它显示:

import math
from decimal import Decimal


def continued_fraction(x, upper_limit=30):
    a = []
    # should in fact iterate until repetitive cycle is found 
    for i in range(upper_limit):
        a.append(int(x))
        x = Decimal(1.0)/(x - a[-1])
    return a


if __name__ == '__main__':
    print (continued_fraction(Decimal(13).sqrt()))

可能是错的?谢谢!

1 个答案:

答案 0 :(得分:0)

为所有 KEYSPACES 描述 TYPE

beaconpoc@cqlsh> DESC TYPES

描述特定 KEYSPACE TYPE

beaconpoc@cqlsh> DESC TYPE keyspace_name.type_name;