Created
July 30, 2019 20:26
-
-
Save kleong/4866a6b79ea063093d2cd6de9f170c18 to your computer and use it in GitHub Desktop.
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
SELECT t.timestamp_ms, | |
t.created_at AS created_at, | |
t.text AS text, | |
t.user.screen_name AS screen_name | |
FROM "twitter-kinesis-demo" t | |
WHERE CAST(timestamp_ms AS INT) > UNIX_MILLIS(current_timestamp() - minutes(1)) | |
ORDER BY timestamp_ms DESC | |
LIMIT 100; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment