blob: 3e63a62a904184d55d1ecb3ed7c59a8b480a68e3 [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.
*/
drop dataverse events if exists;
create dataverse events;
use dataverse events;
create type AddressType as closed {
/*+ val-files data/events/streets.txt */
street: string,
/*+ val-files data/events/cities.txt */
city: string,
/*+ interval long 100000 999999 */
zip: string,
/*+ val-file-same-idx data/events/latlongs.txt city */
latlong: point
}
/*+ dgen user.adm 3*/
create type UserType as open /*+ gen-fields int 0 10 field */ {
/*+ val-files data/uscensus/dist.all.first.cleaned data/uscensus/dist.all.last.cleaned */
name: string,
/*+ insert-rand-int user @example.com */
email: string,
/*+ list-val-file data/events/interests.txt 0 7 */
interests: {{string}},
address: AddressType,
/*+ list 1 10 */
member_of: {{
/*+ gen-fields int 0 2 other */
{
/*+ interval int 100000 999999 */
sig_id: int32,
/*+ val-files data/events/chapter_names.txt */
chapter_name: string,
/*+ date-between-years 1970 1998 */
member_since: date
}
}}
}