blob: f028c895203063b60df26447b3d5e09b0d92c055 [file] [log] [blame]
/*
* Test case Name : open-closed-03.aql
* Description : This test is intended to test insertion of additional data into a closed type
* Expected Result : Failure - This should NOT be allowed!
* Issue number : Issue 66
*/
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type testType as closed {
id : int32,
name : string
}
create dataset testds(testType) partitioned by key id;
insert into dataset testds({"id": 123, "name": "John Doe", "hobbies": {{ "scuba", "music" }} }
);
for $l in dataset("testds") return $l