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