# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. $ set schema={ "type": "record", "name": "foo", "fields": [ {"name": "a", "type": "int"} ] } $ kafka-create-topic topic=data $ kafka-ingest format=avro topic=data schema=${schema} {"a": 1} > CREATE CONNECTION IF NOT EXISTS csr_conn FOR CONFLUENT SCHEMA REGISTRY URL '${testdrive.schema-registry-url}'; > CREATE CONNECTION IF NOT EXISTS kafka_conn TO KAFKA ( BROKER '${testdrive.kafka-addr}', SECURITY PROTOCOL PLAINTEXT ) > CREATE SOURCE data FROM KAFKA CONNECTION kafka_conn (TOPIC 'testdrive-data-${testdrive.seed}') FORMAT AVRO USING CONFLUENT SCHEMA REGISTRY CONNECTION csr_conn ENVELOPE NONE > SELECT * FROM data 1