blob: 63adaf5bd7576626a3d133c8ebabbc90ff8b7baf [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Test case Name : opentype-o2c-recursive.aql
* Description : verify the static casting of nest record constants
* Expected Result : Success
*/
drop dataverse testdv2 if exists;
create dataverse testdv2;
use testdv2;
create type testdv2.AddressType as
{
street : string,
city : string
}
create type testdv2.Dept as
{
name : string,
id : int64
}
create type testdv2.testtype as
closed {
name : string,
id : string,
address : AddressType?,
department : {{Dept}}?
}
create type testdv2.testtype2 as
{
name : string,
id : string
}
create dataset testds(testtype) primary key id;
create dataset testds2(testtype2) primary key id;