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