Skip to content

Instantly share code, notes, and snippets.

@benstopford
Created November 9, 2017 00:14
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 benstopford/c0e5dc1706f4f5a20cacd89e72be465a to your computer and use it in GitHub Desktop.
Save benstopford/c0e5dc1706f4f5a20cacd89e72be465a to your computer and use it in GitHub Desktop.
//Execute query in a sidecar
ksql> CREATE STREAM orders (ORDERID string, ORDERTIME bigint...) WITH (kafka_topic='orders', value_format='JSON');
ksql> CREATE STREAM platinum_emails as select * from orders, customers where client_level == ‘PLATINUM’ and state == ‘CONFIRMED’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment