我想在 cassandra 中声明一个对象列表,并且我已经创建了类型对象
CREATE TYPE profiles.educations (
major text,
end text,
name text,
degree text,
start text,
desce text
);
如何声明地图教育类型列表,因为我有一个这种格式的 json 文件:
{
...
"educations": [
{
"start": "2009",
"major": "Business Administration and Management, General",
"end": "2010",
"name": "Gordon Institute of Business Science - University of Pretoria",
"degree": "PDBA"
},
{
"start": "2002",
"major": "Marketing Management",
"end": "2006",
"name": "University of Pretoria/Universiteit van Pretoria",
"degree": "B. com with specialization in Marketing Management"
},
{
"major": "Finanzas",
"end": "2013",
"name": "Universidad de Los Andes",
"degree": "Maestr\u00eda en Finanzas",
"start": "2011",
"desce": ""
}]
...
}