blob: 6373569aa515bac10c91f0ea0c2c3f9cbfb109d5 [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
19create dataset testds(testType) partitioned by key id;
20
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";
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +000026for $l in dataset("testds") return $l