Skip to content

Instantly share code, notes, and snippets.

@miguno
Last active June 27, 2018 07:58
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 miguno/8dacacd0c3822695ed681a21e43be2fd to your computer and use it in GitHub Desktop.
Save miguno/8dacacd0c3822695ed681a21e43be2fd to your computer and use it in GitHub Desktop.
Creating a stream with a STRUCT column
CREATE STREAM orders (orderid VARCHAR, itemid VARCHAR, address STRUCT<city VARCHAR, state VARCHAR, zicode BIGINT>)
WITH (kafka_topic = 'orders_topic', value_format = 'JSON', key = 'orderId');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment