Skip to content

Instantly share code, notes, and snippets.

@JoshuaChi
Forked from confluentgist/topic-as-table.sql
Created August 8, 2023 14:49
Show Gist options
  • Save JoshuaChi/9ac5ef86229dd43f0382cd6fc6c7f6e3 to your computer and use it in GitHub Desktop.
Save JoshuaChi/9ac5ef86229dd43f0382cd6fc6c7f6e3 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