blob: f028c895203063b60df26447b3d5e09b0d92c055 [file] [log] [blame]
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +00001/*
2 * Test case Name : open-closed-03.aql
3 * Description : This test is intended to test insertion of additional data into a closed type
4 * Expected Result : Failure - This should NOT be allowed!
5 * Issue number : Issue 66
6 */
7
8drop dataverse test if exists;
9
10create dataverse test;
11
12use dataverse test;
13
14create type testType as closed {
15id : int32,
16name : string
17}
18
19create dataset testds(testType) partitioned by key id;
20
21insert into dataset testds({"id": 123, "name": "John Doe", "hobbies": {{ "scuba", "music" }} }
22);
23
24for $l in dataset("testds") return $l