InvalidRequest:code = 2200 [Invalid query] message =" unconfigured table openeventstream"

时间:2016-03-02 13:38:18

标签: python cassandra cql

我试图用Python从Cassandra运行CQL。但我得到了这个错误,

InvalidRequest: code=2200 [Invalid query] message="unconfigured table openeventstream"

有人知道发生了什么吗?

代码:

session = cluster.connect()
session.set_keyspace('meetup')
rows = session.execute('SELECT *  FROM meetup.openEventStream')
for x in rows:
    print x

1 个答案:

答案 0 :(得分:3)

Cassandra将未加引号的文本转换为小写,因此您需要将表名放在引号内:

rows = session.execute('SELECT *  FROM meetup."openEventStream"')