blob: 5faccd14577111febe720443e6da1ec9652a006c [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.
*/
/*
* Description : Testing get-record-field-value under different queries.
* Expected Res : Success
* Date : 04 Jun 2015
*/
drop dataverse test if exists;
create dataverse test;
use test;
create type test.S as
closed {
id : int64,
Species : string
}
create type test.GS as
closed {
id : int64,
Genus : string,
lower : S
}
create type test.FGS as
closed {
id : int64,
Family : string,
lower : GS
}
create type test.OFGS as
closed {
id : int64,
`Order` : string,
lower : FGS
}
create type test.COFGS as
closed {
id : int64,
Class : string,
lower : OFGS
}
create type test.PCOFGS as
closed {
id : int64,
Phylum : string,
lower : COFGS
}
create type test.KPCOFGS as
closed {
id : int64,
Kingdom : string,
lower : PCOFGS
}
create type test.Classification as
closed {
id : int64,
fullClassification : KPCOFGS
}
create type test.Animal as
closed {
id : int64,
class : Classification
}
create dataset Animals(Animal) primary key id;