 	pp_yoffset_min integer,
 	pp_yoffset_max integer,
 	-- User Agent
-	useragent varchar(500) encode text32k,
+	useragent varchar(1000) encode text32k,
 	-- Browser
 	br_name varchar(50) encode text255,
 	br_family varchar(50) encode text255,

CREATE TABLE events (
	-- App
	app_id varchar(255) encode text255, 
	platform varchar(255) encode text255, 
	-- Date/time
	collector_tstamp timestamp,
	dvce_tstamp timestamp,
	-- Event
	event varchar(128) encode text255,
	event_vendor varchar(128) encode text32k,
	event_id varchar(38),
	txn_id int,
	-- Versioning
	v_tracker varchar(100) encode text255, 
	v_collector varchar(100) encode text255,
	v_etl varchar(100) encode text255, 
	-- User and visit
	user_id varchar(255) encode runlength, 
	user_ipaddress varchar(19) encode runlength,

	-- Document
	doc_charset varchar(128) encode text255,
	doc_width integer,
	doc_height integer,
	CONSTRAINT event_id_pk PRIMARY KEY(event_id)
)
DISTSTYLE KEY
DISTKEY (domain_userid)
SORTKEY (collector_tstamp);