Last active
January 9, 2020 07:56
-
-
Save miguno/71505012c346bb4c703d0f312d11af45 to your computer and use it in GitHub Desktop.
ksqlDB example: read topic as table
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 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