Skip to content

Commit

Permalink
Redshift SQL: add for com.optimizely.optimizelyx/summary/jsonschema/1…
Browse files Browse the repository at this point in the history
…-0-0 (close #546)
  • Loading branch information
miike authored and alexanderdean committed Apr 12, 2017
1 parent 5579760 commit 089e838
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions sql/com.optimizely.optimizelyx/summary_1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- AUTO-GENERATED BY igluctl DO NOT EDIT
-- Generator: igluctl 0.2.0
-- Generated: 2017-04-12 13:08

CREATE SCHEMA IF NOT EXISTS atomic;

CREATE TABLE IF NOT EXISTS atomic.com_optimizely_optimizelyx_summary_1 (
"schema_vendor" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"schema_name" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"schema_format" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"schema_version" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"root_id" CHAR(36) ENCODE RAW NOT NULL,
"root_tstamp" TIMESTAMP ENCODE LZO NOT NULL,
"ref_root" VARCHAR(255) ENCODE RUNLENGTH NOT NULL,
"ref_tree" VARCHAR(1500) ENCODE RUNLENGTH NOT NULL,
"ref_parent" VARCHAR(255) ENCODE RUNLENGTH NOT NULL,
"experiment_id" BIGINT ENCODE LZO,
"variation" BIGINT ENCODE LZO,
"variation_name" VARCHAR(255) ENCODE LZO,
"visitor_id" VARCHAR(100) ENCODE LZO,
FOREIGN KEY (root_id) REFERENCES atomic.events(event_id)
)
DISTSTYLE KEY
DISTKEY (root_id)
SORTKEY (root_tstamp);

COMMENT ON TABLE atomic.com_optimizely_optimizelyx_summary_1 IS 'iglu:com.optimizely.optimizelyx/summary/jsonschema/1-0-0';

0 comments on commit 089e838

Please sign in to comment.