blob: e15577bd0fdefc3cfd566e78720089ab57238a90 [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
buyingyi617c8ae2012-05-15 09:40:40 +000022insert into dataset testds({"id": 123});
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +000023
buyingyi68ba8282012-05-11 23:30:19 +000024write output to nc1:"rttest/open-closed_open-closed-02.adm";
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +000025for $l in dataset("testds") return $l