| /* |
| * 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. |
| */ |
| |
| drop dataverse tpcds if exists; |
| create dataverse tpcds; |
| |
| use tpcds; |
| |
| |
| create type tpcds.item_type as |
| closed { |
| i_item_sk : bigint, |
| i_item_id : string, |
| i_rec_start_date : string?, |
| i_rec_end_date : string?, |
| i_item_desc : string?, |
| i_current_price : double?, |
| i_wholesale_cost : double?, |
| i_brand_id : bigint?, |
| i_brand : string?, |
| i_class_id : bigint?, |
| i_class : string?, |
| i_category_id : bigint?, |
| i_category : string?, |
| i_manufact_id : bigint?, |
| i_manufact : string?, |
| i_size : string?, |
| i_formulation : string?, |
| i_color : string?, |
| i_units : string?, |
| i_container : string?, |
| i_manager_id : bigint?, |
| i_product_name : string? |
| } |
| |
| create dataset item (item_type) primary key i_item_sk; |