blob: b29b63a928c315a565cdd6f2051e3d5a5fde5b19 [file] [log] [blame]
khfaraaz82@gmail.come4353172012-05-31 00:09:40 +00001/*
2 * Testcase Name : open-closed-25.aql
3 * Description : Test use of additional data(open) optional field in create type statement
4 * Success : Yes
5 * Date : 29th May 2012
6 */
7
8drop dataverse test if exists;
9
10create dataverse test;
11
12use dataverse test;
13
14create type testType as open {
15id : int32,
16name : string,
17opt_tag : {{ string }}?
18}
19
20create dataset testds(testType) partitioned by key id;
21
22insert into dataset testds({"id": 32,"name": "UCI","opt_tag":{{"optional text","put any text here","and more"}}});
23
buyingyibc282ae2012-06-05 21:41:14 +000024write output to nc1:"rttest/open-closed_open-closed-25.adm";
khfaraaz82@gmail.come4353172012-05-31 00:09:40 +000025for $l in dataset('testds')
26return $l