Controlling AVRO record names and namespaces
This page a tutorial to control AVRO record names and namespaces with Lenses SQL Processors.
Setting up our input topic
CREATE TABLE mytopic(a string, b string, c string) FORMAT (STRING, AVRO);INSERT INTO mytopic(a, b, c) VALUES ("a", "b", "c");Create a simple SQL Processor
SET defaults.topic.autocreate=true;
INSERT INTO mytopic_2
SELECT STREAM a as x.a, b as x.y.b, c as x.y.c
FROM mytopicSet the record name and the namespace of the value schema
Set the record name and the namespace of the key schema
More control on the topic affected by the setting
Last updated
Was this helpful?

