blob: f19e4a7f4f24ffb0eaf8723fffab6c84a05c01fb [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
21create dataset testds(testType) partitioned by key id;
22
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