Skip to content

Instantly share code, notes, and snippets.

@confluentgist
Forked from miguno/topic-as-stream.sql
Created January 9, 2020 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save confluentgist/2e9f37db0d9810044f6836f48b267fcd to your computer and use it in GitHub Desktop.
Save confluentgist/2e9f37db0d9810044f6836f48b267fcd to your computer and use it in GitHub Desktop.
ksqlDB example: read topic as stream
-- Create ksqlDB stream from Kafka topic.
CREATE STREAM myStream (username VARCHAR, location VARCHAR)
WITH (KAFKA_TOPIC='input-topic', VALUE_FORMAT='...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment