Unwrapping complex types
This page describes a tutorial to unwrap a complex data type in a Kafka topic using Lenses SQL Processors.
Setting up
CREATE TABLE lenses_monitoring(
_key.landing_page string
, _key.user string
, time_spent_s int
)
FORMAT(avro, avro);INSERT INTO lenses_monitoring(
_key.landing_page
, _key.user
, time_spent_s
) VALUES
("homepage", "anon_21", 30),
("why-lenses", "anon_32", 45),
("use-cases", "anon_56", 12),
("customers", "anon_36", 12),
("use-cases", "anon_126", 12); Unwrapping the data
Last updated
Was this helpful?

