Skip to content

Instantly share code, notes, and snippets.

@confluentgist
Forked from miguno/topic-as-table.sql
Created January 9, 2020 07:56
Show Gist options
  • Save confluentgist/450505b3c4d08c6c641d272d63234349 to your computer and use it in GitHub Desktop.
Save confluentgist/450505b3c4d08c6c641d272d63234349 to your computer and use it in GitHub Desktop.
ksqlDB example: read topic as table
-- Create ksqlDB table from Kafka topic.
CREATE TABLE myTable (username VARCHAR, location VARCHAR)
WITH (KAFKA_TOPIC='input-topic', KEY='username', VALUE_FORMAT='...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment