blob: 55d0497415ae39e675fe4718fd0a0e7c4d8a3a08 [file] [log] [blame]
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +00001/*
2 * Test case Name : open-closed-01.aql
3 * Description : This test is intended to test insertion of additional data into an open type
4 * Expected Result : Success
5 * Date : April 2 2012
6 */
7
8drop dataverse test if exists;
9
10create dataverse test;
11
12use dataverse test;
13
14create type testType as{
15id : int32,
16name : string
17}
18
ramangrover29669d8f62013-02-11 06:03:32 +000019create dataset testds(testType) primary key id;
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +000020
buyingyi68ba8282012-05-11 23:30:19 +000021
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +000022insert into dataset testds({"id": 123, "name": "John Doe", "hobbies": {{ "scuba", "music" }} }
23);
24
buyingyi68ba8282012-05-11 23:30:19 +000025write output to nc1:"rttest/open-closed_open-closed-01.adm";
buyingyi435234e2012-05-21 06:30:43 +000026for $l in dataset("testds")
27order by $l.id
28return $l