blob: 379e2821c4383360861f365b8f9cdb6f8231998e [file] [log] [blame]
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +00001/*
2 * Testcase Name : open-closed-13.aql
3 * Description : Attempt to insert additional data into a dataset which is defined as closed type.
4 * Success : This test should fail! No additional data allowed in datasets of closed type.
5 * Date : March 27 2012
6 */
7
8
9create dataverse testdv2;
10use dataverse testdv2;
11
12create type testtype as closed {
13 id: string,
14 name: string
15}
16
khfaraaz82@gmail.com502731f2012-05-02 20:38:16 +000017create dataset testds(testtype) partitioned by key id;
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +000018
19insert into dataset testds (
20{ "id": "001", "name": "Person Three", "hobbies": {{"scuba", "music"}}}
21);
22
23for $d in dataset("testds")
24return $d
25