Skip to content

Instantly share code, notes, and snippets.

@tlberglund
Last active March 6, 2018 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlberglund/efc5f4f457e1af6833c358f11c1b4d1e to your computer and use it in GitHub Desktop.
Save tlberglund/efc5f4f457e1af6833c358f11c1b4d1e to your computer and use it in GitHub Desktop.
CREATE STREAM twitter_raw
(CreatedAt bigint,
Id bigint,
Text VARCHAR,
SOURCE VARCHAR,
Truncated VARCHAR,
InReplyToStatusId VARCHAR,
InReplyToUserId VARCHAR,
InReplyToScreenName VARCHAR,
GeoLocation VARCHAR,
Place VARCHAR,
Favorited VARCHAR,
Retweeted VARCHAR,
FavoriteCount VARCHAR,
User VARCHAR,
Retweet VARCHAR,
Contributors VARCHAR,
RetweetCount VARCHAR,
RetweetedByMe VARCHAR,
CurrentUserRetweetId VARCHAR,
PossiblySensitive VARCHAR,
Lang VARCHAR,
WithheldInCountries VARCHAR,
HashtagEntities VARCHAR,
UserMentionEntities VARCHAR,
MediaEntities VARCHAR,
SymbolEntities VARCHAR,
URLEntities VARCHAR)
WITH (KAFKA_TOPIC='twitter_json_01',
VALUE_FORMAT='JSON');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment