blob: 486b76e2b5f4f9bfe654e6bc29af077875033c77 [file] [log] [blame]
/*
* Testcase Name : open-closed-26.aql
* Description : Test use of additional data(open) optional field in create type statement
* : No additional data is inserted (as it is declared as optional) from the insert 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) primary key id;
insert into dataset testds({"id": 32,"name": "UCI"});
write output to nc1:"rttest/open-closed_open-closed-26.adm";
for $l in dataset('testds')
return $l