blob: 68d0b706729bc2cd7c8a9c49ccf0906575812ce1 [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
17create nodegroup grouptest on nc1;
18
19create dataset testds(testtype) partitioned by key id on grouptest;
20
21insert into dataset testds (
22{ "id": "001", "name": "Person Three", "hobbies": {{"scuba", "music"}}}
23);
24
25for $d in dataset("testds")
26return $d
27