我有一个Cassandra文件表,类似于以下(假)结构:
CREATE TABLE files{
filename: text;
versions:LIST<{timestamp, filesize}>
}
我小心翼翼地总是在LIST的开头插入最新版本。 我试图运行
select filename, versions[0] from files;
我遇到了以下错误:
SyntaxException:
我无法在StackOverflow和Internet上找到解决方案。只是想知道这是否可能在Cassandra CQL中实现?当然,如果没有这样的解决方案,我将在客户端处理数据。
提前谢谢你,
应