我试图用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
答案 0 :(得分:3)
Cassandra将未加引号的文本转换为小写,因此您需要将表名放在引号内:
rows = session.execute('SELECT * FROM meetup."openEventStream"')