blob: 58177d37a7ab1d1f9dd9f586aa015ff5d20925c8 [file] [log] [blame]
pouria.pirzadeh@gmail.comfa890742013-03-07 23:59:21 +00001/*
2 * Test case Name : insert-syntax-change.aql
3 * Description : verify various AQL syntax for insert
4 * Expected Result : Success
5 * Date : 6th March 2013
6 */
7
8drop dataverse testdv2 if exists;
9create dataverse testdv2;
10use dataverse testdv2;
11
12create type testtype as open {
13 id: int32,
14 name: string
15}
16
17create dataset testds(testtype) primary key id;
18
19 insert into dataset testds (
20 { "id": 1, "name": "Person One", "hobbies": {{"Rock", "Metal"}}}
21 );
22
23 insert into dataset testds (
24 { "id": 2, "name": "Person Two", "hobbies": {{"Rock", "Jazz"}}}
25 )
26
27 insert into dataset testds { "id": 3, "name": "Person Three", "hobbies": {{"Blues"}}};
28
29 insert into dataset testds { "id": 4, "name": "Person Four", "hobbies": {{"Metal", "Jazz"}}}
30
31write output to nc1:"rttest/dml_insert-syntax.adm";
32
33for $d in dataset("testds")
34order by $d.id
35return $d