Skip to content

Commit

Permalink
Redshift: changed JSON field encodings to lzo (closes #1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblundun committed Mar 2, 2015
1 parent 0f43018 commit dd3746c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions 4-storage/redshift-storage/sql/atomic-def.sql
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ CREATE TABLE atomic.events (
mkt_content varchar(500) encode raw,
mkt_campaign varchar(255) encode text32k,
-- Custom contexts
contexts varchar(10000) encode raw,
contexts varchar(10000) encode lzo, -- Changed encoding from raw to lzo in 0.5.0
-- Custom structured event
se_category varchar(255) encode text255,
se_action varchar(255) encode text255,
se_label varchar(255) encode text32k,
se_property varchar(255) encode text32k,
se_value double precision,
-- Custom unstructured event
unstruct_event varchar(10000) encode raw,
unstruct_event varchar(10000) encode lzo, -- Changed encoding from raw to lzo in 0.5.0
-- Ecommerce
tr_orderid varchar(255) encode raw,
tr_affiliation varchar(255) encode text255,
Expand Down Expand Up @@ -175,7 +175,7 @@ CREATE TABLE atomic.events (
dvce_sent_tstamp timestamp, -- Added in 0.5.0

-- Derived contexts
derived_contexts varchar(10000) encode raw, -- Added in 0.5.0
derived_contexts varchar(10000) encode lzo, -- Added in 0.5.0

CONSTRAINT event_id_040_pk PRIMARY KEY(event_id)
)
Expand Down
6 changes: 3 additions & 3 deletions 4-storage/redshift-storage/sql/migrate_0.4.0_to_0.5.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ CREATE TABLE atomic.events (
mkt_content varchar(500) encode raw,
mkt_campaign varchar(255) encode text32k,
-- Custom contexts
contexts varchar(10000) encode raw,
contexts varchar(10000) encode lzo, -- Changed encoding from raw to lzo in 0.5.0
-- Custom structured event
se_category varchar(255) encode text255,
se_action varchar(255) encode text255,
se_label varchar(255) encode text32k,
se_property varchar(255) encode text32k,
se_value double precision,
-- Custom unstructured event
unstruct_event varchar(10000) encode raw,
unstruct_event varchar(10000) encode lzo, -- Changed encoding from raw to lzo in 0.5.0
-- Ecommerce
tr_orderid varchar(255) encode raw,
tr_affiliation varchar(255) encode text255,
Expand Down Expand Up @@ -175,7 +175,7 @@ CREATE TABLE atomic.events (
dvce_sent_tstamp timestamp, -- Added in 0.5.0

-- Derived contexts
derived_contexts varchar(10000) encode raw, -- Added in 0.5.0
derived_contexts varchar(10000) encode lzo, -- Added in 0.5.0

CONSTRAINT event_id_040_pk PRIMARY KEY(event_id)
)
Expand Down

0 comments on commit dd3746c

Please sign in to comment.