forked from ClickHouse/ClickBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_single.sql
112 lines (112 loc) · 2.61 KB
/
create_single.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
CREATE EXTERNAL TABLE IF NOT EXISTS `test`.`hits` (
`watchid` bigint,
`javaenable` smallint,
`title` string,
`goodevent` smallint,
`eventtime` timestamp,
`eventdate` date,
`counterid` int,
`clientip` int,
`regionid` int,
`userid` bigint,
`counterclass` smallint,
`os` smallint,
`useragent` smallint,
`url` string,
`referer` string,
`isrefresh` smallint,
`referercategoryid` smallint,
`refererregionid` int,
`urlcategoryid` smallint,
`urlregionid` int,
`resolutionwidth` smallint,
`resolutionheight` smallint,
`resolutiondepth` smallint,
`flashmajor` smallint,
`flashminor` smallint,
`flashminor2` string,
`netmajor` smallint,
`netminor` smallint,
`useragentmajor` smallint,
`useragentminor` string,
`cookieenable` smallint,
`javascriptenable` smallint,
`ismobile` smallint,
`mobilephone` smallint,
`mobilephonemodel` string,
`params` string,
`ipnetworkid` int,
`traficsourceid` smallint,
`searchengineid` smallint,
`searchphrase` string,
`advengineid` smallint,
`isartifical` smallint,
`windowclientwidth` smallint,
`windowclientheight` smallint,
`clienttimezone` smallint,
`clienteventtime` timestamp,
`silverlightversion1` smallint,
`silverlightversion2` smallint,
`silverlightversion3` int,
`silverlightversion4` smallint,
`pagecharset` string,
`codeversion` int,
`islink` smallint,
`isdownload` smallint,
`isnotbounce` smallint,
`funiqid` bigint,
`originalurl` string,
`hid` int,
`isoldcounter` smallint,
`isevent` smallint,
`isparameter` smallint,
`dontcounthits` smallint,
`withhash` smallint,
`hitcolor` string,
`localeventtime` timestamp,
`age` smallint,
`sex` smallint,
`income` smallint,
`interests` smallint,
`robotness` smallint,
`remoteip` int,
`windowname` int,
`openername` int,
`historylength` smallint,
`browserlanguage` string,
`browsercountry` string,
`socialnetwork` string,
`socialaction` string,
`httperror` smallint,
`sendtiming` int,
`dnstiming` int,
`connecttiming` int,
`responsestarttiming` int,
`responseendtiming` int,
`fetchtiming` int,
`socialsourcenetworkid` smallint,
`socialsourcepage` string,
`paramprice` bigint,
`paramorderid` string,
`paramcurrency` string,
`paramcurrencyid` smallint,
`openstatservicename` string,
`openstatcampaignid` string,
`openstatadid` string,
`openstatsourceid` string,
`utmsource` string,
`utmmedium` string,
`utmcampaign` string,
`utmcontent` string,
`utmterm` string,
`fromtag` string,
`hasgclid` smallint,
`refererhash` bigint,
`urlhash` bigint,
`clid` int
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://clickhouse-public-datasets/hits_compatible/athena'
TBLPROPERTIES ('has_encrypted_data'='false');