blob: 0d26b5dbe93ee025ee68fb0af9f4ff32dc7ed2ec [file] [log] [blame]
/*
* Test case Name : open-closed-01.aql
* Description : This test is intended to test insertion of additional data into an open type
* Expected Result : Success
* Date : April 2 2012
*/
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type testType as{
id : int32,
name : string
}
create dataset testds(testType) partitioned by key id;
insert into dataset testds({"id": 123, "name": "John Doe", "hobbies": {{ "scuba", "music" }} }
);
write output to nc1:"rttest/open-closed_open-closed-01.adm";
for $l in dataset("testds")
order by $l.id
return $l