blob: 486b76e2b5f4f9bfe654e6bc29af077875033c77 [file] [log] [blame]
khfaraaz82@gmail.come4353172012-05-31 00:09:40 +00001/*
2 * Testcase Name : open-closed-26.aql
3 * Description : Test use of additional data(open) optional field in create type statement
4 * : No additional data is inserted (as it is declared as optional) from the insert statement.
5 * Success : Yes
6 * Date : 29th May 2012
7 */
8
9drop dataverse test if exists;
10
11create dataverse test;
12
13use dataverse test;
14
15create type testType as open {
16id : int32,
17name : string,
18opt_tag : {{ string }}?
19}
20
ramangrover29669d8f62013-02-11 06:03:32 +000021create dataset testds(testType) primary key id;
khfaraaz82@gmail.come4353172012-05-31 00:09:40 +000022
23insert into dataset testds({"id": 32,"name": "UCI"});
24
buyingyibc282ae2012-06-05 21:41:14 +000025write output to nc1:"rttest/open-closed_open-closed-26.adm";
khfaraaz82@gmail.come4353172012-05-31 00:09:40 +000026for $l in dataset('testds')
27return $l