blob: 78fcb07c3d5c5c4518a34c46c397bae18f5caf83 [file] [log] [blame]
Ildar Absalyamov04b2b772015-03-19 15:09:51 -07001/*
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