mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Minor modifications
This commit is contained in:
parent
61e42840b5
commit
4bac70f1e6
@ -5,3 +5,6 @@ sudo apt-get install -y docker.io
|
||||
sudo docker run --network host -p 8080:8080 --name trino trinodb/trino
|
||||
|
||||
sudo docker exec -it trino trino
|
||||
|
||||
CREATE SCHEMA memory.test;
|
||||
USE memory.test;
|
||||
|
@ -1,7 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
|
||||
CREATE TABLE IF NOT EXISTS "memory"."test"."hits" (
|
||||
"watchid" bigint,
|
||||
"javaenable" smallint,
|
||||
"title" string,
|
||||
"title" varchar(65535),
|
||||
"goodevent" smallint,
|
||||
"eventtime" timestamp,
|
||||
"eventdate" date,
|
||||
@ -12,8 +12,8 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
|
||||
"counterclass" smallint,
|
||||
"os" smallint,
|
||||
"useragent" smallint,
|
||||
"url" string,
|
||||
"referer" string,
|
||||
"url" varchar(65535),
|
||||
"referer" varchar(65535),
|
||||
"isrefresh" smallint,
|
||||
"referercategoryid" smallint,
|
||||
"refererregionid" int,
|
||||
@ -24,21 +24,21 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
|
||||
"resolutiondepth" smallint,
|
||||
"flashmajor" smallint,
|
||||
"flashminor" smallint,
|
||||
"flashminor2" string,
|
||||
"flashminor2" varchar(65535),
|
||||
"netmajor" smallint,
|
||||
"netminor" smallint,
|
||||
"useragentmajor" smallint,
|
||||
"useragentminor" string,
|
||||
"useragentminor" varchar(65535),
|
||||
"cookieenable" smallint,
|
||||
"javascriptenable" smallint,
|
||||
"ismobile" smallint,
|
||||
"mobilephone" smallint,
|
||||
"mobilephonemodel" string,
|
||||
"params" string,
|
||||
"mobilephonemodel" varchar(65535),
|
||||
"params" varchar(65535),
|
||||
"ipnetworkid" int,
|
||||
"traficsourceid" smallint,
|
||||
"searchengineid" smallint,
|
||||
"searchphrase" string,
|
||||
"searchphrase" varchar(65535),
|
||||
"advengineid" smallint,
|
||||
"isartifical" smallint,
|
||||
"windowclientwidth" smallint,
|
||||
@ -49,20 +49,20 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
|
||||
"silverlightversion2" smallint,
|
||||
"silverlightversion3" int,
|
||||
"silverlightversion4" smallint,
|
||||
"pagecharset" string,
|
||||
"pagecharset" varchar(65535),
|
||||
"codeversion" int,
|
||||
"islink" smallint,
|
||||
"isdownload" smallint,
|
||||
"isnotbounce" smallint,
|
||||
"funiqid" bigint,
|
||||
"originalurl" string,
|
||||
"originalurl" varchar(65535),
|
||||
"hid" int,
|
||||
"isoldcounter" smallint,
|
||||
"isevent" smallint,
|
||||
"isparameter" smallint,
|
||||
"dontcounthits" smallint,
|
||||
"withhash" smallint,
|
||||
"hitcolor" string,
|
||||
"hitcolor" varchar(65535),
|
||||
"localeventtime" timestamp,
|
||||
"age" smallint,
|
||||
"sex" smallint,
|
||||
@ -73,10 +73,10 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
|
||||
"windowname" int,
|
||||
"openername" int,
|
||||
"historylength" smallint,
|
||||
"browserlanguage" string,
|
||||
"browsercountry" string,
|
||||
"socialnetwork" string,
|
||||
"socialaction" string,
|
||||
"browserlanguage" varchar(65535),
|
||||
"browsercountry" varchar(65535),
|
||||
"socialnetwork" varchar(65535),
|
||||
"socialaction" varchar(65535),
|
||||
"httperror" smallint,
|
||||
"sendtiming" int,
|
||||
"dnstiming" int,
|
||||
@ -85,24 +85,23 @@ CREATE TABLE IF NOT EXISTS "test"."test"."hits" (
|
||||
"responseendtiming" int,
|
||||
"fetchtiming" int,
|
||||
"socialsourcenetworkid" smallint,
|
||||
"socialsourcepage" string,
|
||||
"socialsourcepage" varchar(65535),
|
||||
"paramprice" bigint,
|
||||
"paramorderid" string,
|
||||
"paramcurrency" string,
|
||||
"paramorderid" varchar(65535),
|
||||
"paramcurrency" varchar(65535),
|
||||
"paramcurrencyid" smallint,
|
||||
"openstatservicename" string,
|
||||
"openstatcampaignid" string,
|
||||
"openstatadid" string,
|
||||
"openstatsourceid" string,
|
||||
"utmsource" string,
|
||||
"utmmedium" string,
|
||||
"utmcampaign" string,
|
||||
"utmcontent" string,
|
||||
"utmterm" string,
|
||||
"fromtag" string,
|
||||
"openstatservicename" varchar(65535),
|
||||
"openstatcampaignid" varchar(65535),
|
||||
"openstatadid" varchar(65535),
|
||||
"openstatsourceid" varchar(65535),
|
||||
"utmsource" varchar(65535),
|
||||
"utmmedium" varchar(65535),
|
||||
"utmcampaign" varchar(65535),
|
||||
"utmcontent" varchar(65535),
|
||||
"utmterm" varchar(65535),
|
||||
"fromtag" varchar(65535),
|
||||
"hasgclid" smallint,
|
||||
"refererhash" bigint,
|
||||
"urlhash" bigint,
|
||||
"clid" int
|
||||
)
|
||||
WITH (FORMAT=Parquet);
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user