blob: b29b63a928c315a565cdd6f2051e3d5a5fde5b19 [file] [log] [blame]
/*
* Testcase Name : open-closed-25.aql
* Description : Test use of additional data(open) optional field in create type statement
* Success : Yes
* Date : 29th May 2012
*/
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type testType as open {
id : int32,
name : string,
opt_tag : {{ string }}?
}
create dataset testds(testType) partitioned by key id;
insert into dataset testds({"id": 32,"name": "UCI","opt_tag":{{"optional text","put any text here","and more"}}});
write output to nc1:"rttest/open-closed_open-closed-25.adm";
for $l in dataset('testds')
return $l