blob: 379e2821c4383360861f365b8f9cdb6f8231998e [file] [log] [blame]
/*
* Testcase Name : open-closed-13.aql
* Description : Attempt to insert additional data into a dataset which is defined as closed type.
* Success : This test should fail! No additional data allowed in datasets of closed type.
* Date : March 27 2012
*/
create dataverse testdv2;
use dataverse testdv2;
create type testtype as closed {
id: string,
name: string
}
create dataset testds(testtype) partitioned by key id;
insert into dataset testds (
{ "id": "001", "name": "Person Three", "hobbies": {{"scuba", "music"}}}
);
for $d in dataset("testds")
return $d