1
- CREATE TABLE IF NOT EXISTS " test " ." test" ." hits" (
1
+ CREATE TABLE IF NOT EXISTS " memory " ." test" ." hits" (
2
2
" watchid" bigint ,
3
3
" javaenable" smallint ,
4
- " title" string ,
4
+ " title" varchar ( 65535 ) ,
5
5
" goodevent" smallint ,
6
6
" eventtime" timestamp ,
7
7
" eventdate" date ,
@@ -12,8 +12,8 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
12
12
" counterclass" smallint ,
13
13
" os" smallint ,
14
14
" useragent" smallint ,
15
- " url" string ,
16
- " referer" string ,
15
+ " url" varchar ( 65535 ) ,
16
+ " referer" varchar ( 65535 ) ,
17
17
" isrefresh" smallint ,
18
18
" referercategoryid" smallint ,
19
19
" refererregionid" int ,
@@ -24,21 +24,21 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
24
24
" resolutiondepth" smallint ,
25
25
" flashmajor" smallint ,
26
26
" flashminor" smallint ,
27
- " flashminor2" string ,
27
+ " flashminor2" varchar ( 65535 ) ,
28
28
" netmajor" smallint ,
29
29
" netminor" smallint ,
30
30
" useragentmajor" smallint ,
31
- " useragentminor" string ,
31
+ " useragentminor" varchar ( 65535 ) ,
32
32
" cookieenable" smallint ,
33
33
" javascriptenable" smallint ,
34
34
" ismobile" smallint ,
35
35
" mobilephone" smallint ,
36
- " mobilephonemodel" string ,
37
- " params" string ,
36
+ " mobilephonemodel" varchar ( 65535 ) ,
37
+ " params" varchar ( 65535 ) ,
38
38
" ipnetworkid" int ,
39
39
" traficsourceid" smallint ,
40
40
" searchengineid" smallint ,
41
- " searchphrase" string ,
41
+ " searchphrase" varchar ( 65535 ) ,
42
42
" advengineid" smallint ,
43
43
" isartifical" smallint ,
44
44
" windowclientwidth" smallint ,
@@ -49,20 +49,20 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
49
49
" silverlightversion2" smallint ,
50
50
" silverlightversion3" int ,
51
51
" silverlightversion4" smallint ,
52
- " pagecharset" string ,
52
+ " pagecharset" varchar ( 65535 ) ,
53
53
" codeversion" int ,
54
54
" islink" smallint ,
55
55
" isdownload" smallint ,
56
56
" isnotbounce" smallint ,
57
57
" funiqid" bigint ,
58
- " originalurl" string ,
58
+ " originalurl" varchar ( 65535 ) ,
59
59
" hid" int ,
60
60
" isoldcounter" smallint ,
61
61
" isevent" smallint ,
62
62
" isparameter" smallint ,
63
63
" dontcounthits" smallint ,
64
64
" withhash" smallint ,
65
- " hitcolor" string ,
65
+ " hitcolor" varchar ( 65535 ) ,
66
66
" localeventtime" timestamp ,
67
67
" age" smallint ,
68
68
" sex" smallint ,
@@ -73,10 +73,10 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
73
73
" windowname" int ,
74
74
" openername" int ,
75
75
" historylength" smallint ,
76
- " browserlanguage" string ,
77
- " browsercountry" string ,
78
- " socialnetwork" string ,
79
- " socialaction" string ,
76
+ " browserlanguage" varchar ( 65535 ) ,
77
+ " browsercountry" varchar ( 65535 ) ,
78
+ " socialnetwork" varchar ( 65535 ) ,
79
+ " socialaction" varchar ( 65535 ) ,
80
80
" httperror" smallint ,
81
81
" sendtiming" int ,
82
82
" dnstiming" int ,
@@ -85,24 +85,23 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
85
85
" responseendtiming" int ,
86
86
" fetchtiming" int ,
87
87
" socialsourcenetworkid" smallint ,
88
- " socialsourcepage" string ,
88
+ " socialsourcepage" varchar ( 65535 ) ,
89
89
" paramprice" bigint ,
90
- " paramorderid" string ,
91
- " paramcurrency" string ,
90
+ " paramorderid" varchar ( 65535 ) ,
91
+ " paramcurrency" varchar ( 65535 ) ,
92
92
" paramcurrencyid" smallint ,
93
- " openstatservicename" string ,
94
- " openstatcampaignid" string ,
95
- " openstatadid" string ,
96
- " openstatsourceid" string ,
97
- " utmsource" string ,
98
- " utmmedium" string ,
99
- " utmcampaign" string ,
100
- " utmcontent" string ,
101
- " utmterm" string ,
102
- " fromtag" string ,
93
+ " openstatservicename" varchar ( 65535 ) ,
94
+ " openstatcampaignid" varchar ( 65535 ) ,
95
+ " openstatadid" varchar ( 65535 ) ,
96
+ " openstatsourceid" varchar ( 65535 ) ,
97
+ " utmsource" varchar ( 65535 ) ,
98
+ " utmmedium" varchar ( 65535 ) ,
99
+ " utmcampaign" varchar ( 65535 ) ,
100
+ " utmcontent" varchar ( 65535 ) ,
101
+ " utmterm" varchar ( 65535 ) ,
102
+ " fromtag" varchar ( 65535 ) ,
103
103
" hasgclid" smallint ,
104
104
" refererhash" bigint ,
105
105
" urlhash" bigint ,
106
106
" clid" int
107
- )
108
- WITH (FORMAT= Parquet);
107
+ );
0 commit comments