blob: acfec63a2004896ad7a30142e1a44341f1411292 [file] [log] [blame]
Till Westmann0f6ee0a2015-10-02 17:10:19 -07001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
vinayakb38b7ca42012-03-05 05:44:15 +000019drop dataverse events if exists;
20create dataverse events;
21use dataverse events;
22
23
24create type AddressType as closed {
25 /*+ val-files data/events/streets.txt */
26 street: string,
27 /*+ val-files data/events/cities.txt */
28 city: string,
29 /*+ interval long 100000 999999 */
30 zip: string,
31 /*+ val-file-same-idx data/events/latlongs.txt city */
32 latlong: point
33}
34
35/*+ dgen event.adm 5*/
36create type EventType as closed {
37 /*+ auto 100000 */
38 event_id: int64,
39 /*+ insert-rand-int event- - */
40 name: string,
41 location: AddressType ?,
42 /*+ list 1 3 */
43 organizers: {{
44 /*+ gen-fields int 0 2 other */
45 {
46 /*+ val-files data/uscensus/dist.all.first.cleaned data/uscensus/dist.all.last.cleaned */
47 name: string
48 }
49 }},
50 /*+ list 1 2 */
51 sponsoring_sigs: [
52 {
53 /*+ interval int 100 120 */
54 sig_id: int32,
55 /*+ val-files data/events/chapter_names.txt */
56 chapter_name: string
57 }
58 ],
59 /*+ list-val-file data/events/interests.txt 1 4 */
60 interest_keywords: {{string}},
61 /*+ interval double 5 20 */
62 price: double?,
63 /*+ datetime-between-years 1999 2012 */
64 start_time: datetime,
65 /*+ datetime-add-rand-hours 1 4 start_time */
66 end_time: datetime
67}
68
69