Last active
March 6, 2018 14:35
-
-
Save tlberglund/077f1f47311888c7c8cba75f002982e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CREATE STREAM twitter_summit AS | |
SELECT | |
TIMESTAMPTOSTRING(CreatedAt, 'yyyy-MM-dd HH:mm:ss.SSS') AS CreatedAt, | |
EXTRACTJSONFIELD(user,'$.Name') AS user_Name, | |
EXTRACTJSONFIELD(user,'$.ScreenName') AS user_ScreenName, | |
EXTRACTJSONFIELD(user,'$.Location') AS user_Location, | |
EXTRACTJSONFIELD(user,'$.Description') AS user_Description, | |
Text, | |
hashtagentities, | |
lang | |
FROM twitter_raw | |
WHERE LCASE(hashtagentities) LIKE '%kafkasummit%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment