blob: 55651be36d19bc58c1bf54a0e8d3ed0be2e0a453 [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
24for $l in dataset('testds')
25return $l