Collections Cassandra查询的映射文本无效
我正在尝试执行以下查询:Collections Cassandra查询的映射文本无效,collections,cassandra,Collections,Cassandra,我正在尝试执行以下查询: insert-into-test(id,标识符)值('1',{'id':'test','id_-bin':{'\x35000000000050a0'},'oidcatref':'1','otype_-bin':'1','id_-qaul':'test','id_-flag':'1') 这是我的标识符类型: 创建类型标识符(id文本、id_-bin列表、oidcatref bigint、otype_-bin int、id_-qaul文本、id_-flag smallint
insert-into-test(id,标识符)值('1',{'id':'test','id_-bin':{'\x35000000000050a0'},'oidcatref':'1','otype_-bin':'1','id_-qaul':'test','id_-flag':'1')代码>
这是我的标识符类型:
创建类型标识符(id文本、id_-bin列表、oidcatref bigint、otype_-bin int、id_-qaul文本、id_-flag smallint)代码>
和我的表格结构:
创建表测试(id int主键,标识符冻结)代码>
我真的不知道怎么了,谢谢你的帮助仅用单引号括起字符串值。对于UDT字段,从字段名中删除引号
insert into test (id, identifiers) values
(
1,
{
id :'test',
id_bin : [0x3500000000000050a0],
oidcatref : 1,
otype_bin : 1,
id_qaul : 'test',
id_flag : 1
}
);