在我的cassandra表中,我有一个Map的集合,我也已经为地图键编制了索引.
CREATE TABLE IF NOT EXISTS test.collection_test(
name text,
year text,
attributeMap map<text,text>,
PRIMARY KEY ((name, year))
);
CREATE INDEX ON collection_test (attributeMap);
Run Code Online (Sandbox Code Playgroud)
QueryBuilder语法如下:
select().all().from("test", "collection_test")
.where(eq("name", name)).and(eq("year", year));
Run Code Online (Sandbox Code Playgroud)
我应该如何放置条件attributeMap?
根据此文档
Liquibase可以sql在给定路径中执行多个文件,而无需任何更改日志.但是,当我使用以下插入创建文件时
insert into address (id, line1, line2) values (1, '121 Main Ave', null);
insert into address (id, line1, line2) values (2, '662 Broadway', 'Suite 3317');
insert into address (id, line1, line2) values (3, '412 Riverview', null);
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
sql语法无效