blob: 82912bda542d7ed73f57a1af2a24fd7eddc4d6f0 [file] [log] [blame]
khfaraaz82@gmail.coma2716132012-04-30 06:20:50 +00001/*
2 * Test case Name : open-closed-04.aql
3 * Description : This test is intended to test type in the Metdata for the dataset.
4 * : Verify if the type is open.
5 * Expected Result : Success - This should be allowed!
6 * Issue number : Issue 73
7 */
8
9drop dataverse test if exists;
10
11create dataverse test;
12
13use dataverse test;
14
15create type TestType as open {
16id : int32,
17name : string
18}
19
20create dataset testds(TestType) partitioned by key id;
21
22/*
23 * Connect to the Metadata dataverse and run the following commands.
24 */
25
26use dataverse Metadata;
27
28for $l in dataset('Datatype')
29let $x := $l.Derived
30where $l.DatatypeName="TestType"
31return $x.Record