Last active
April 28, 2018 17:53
-
-
Save apurvam/319f507e76d240061b2a94fac67a11ae to your computer and use it in GitHub Desktop.
Example of table aggregations in KSQL
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
CREATE TABLE users (userid bigint, zipcode int, created_at bigint) \ | |
WITH (kafka_topic=’users’, value_format=’json’, key=’userid’); | |
SELECT zipcode, count(*) from users GROUP BY zipcode; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment