-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redshift: added Redshift DDL for com.google.analytics.enhanced-ecomme…
…rce/promotionFieldObject (closes #2131)
- Loading branch information
1 parent
2d9e0b3
commit 36d2af2
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...age/redshift-storage/sql/com.google.analytics.enhanced-ecommerce/promo_field_object_1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- AUTO-GENERATED BY schema-ddl DO NOT EDIT | ||
-- Generator: schema-ddl 0.2.0 | ||
-- Generated: 2015-11-17 10:49 | ||
|
||
CREATE SCHEMA IF NOT EXISTS atomic; | ||
|
||
CREATE TABLE IF NOT EXISTS atomic.com_google_analytics_enhanced_ecommerce_promo_field_object_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, | ||
"creative" VARCHAR(500) ENCODE LZO, | ||
"currency" CHAR(3) ENCODE LZO, | ||
"id" VARCHAR(500) ENCODE LZO, | ||
"name" VARCHAR(500) ENCODE LZO, | ||
"position" VARCHAR(500) ENCODE LZO, | ||
FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) | ||
) | ||
DISTSTYLE KEY | ||
DISTKEY (root_id) | ||
SORTKEY (root_tstamp); | ||
|
||
COMMENT ON TABLE atomic.com_google_analytics_enhanced_ecommerce_promo_field_object_1 IS 'iglu:com.google.analytics.enhanced-ecommerce/promoFieldObject/jsonschema/1-0-0'; |