blob: b5cca5f4eb15a4af3f312f6107a8150be6f4ca8d [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) partitioned by key id;
insert into dataset testds({"id": 32,"name": "UCI"});
for $l in dataset('testds')
return $l