blob: 2bd18feb5daa1069133564f6c11af3b38265eef9 [file] [log] [blame]
/*
* Test case Name : open-closed-05.aql
* Description : Create internal dataset and verify if the type is marked as closed in metadata.
* Expected Result : Success
*/
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type testType as closed {
id : int32,
name : string
}
create dataset testds(testType) partitioned by key id;
/*
* Connect to the Metadata dataverse and run the following commands.
* Verify if the type is closed by querying Metadata.
*/
use dataverse Metadata;
for $l in dataset('Datatype')
let $x := $l.Derived
where $l.DatatypeName="TestType"
return $x.Record