# 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-arg-default single-replica-cluster=quickstart # # Test the case where we fail to publish the schema of the reader # $ kafka-create-topic topic=resolution-no-publish-writer # The schema is {"type": "record", "name": "schema_int", "fields": [ {"name": "f1", "type": "int"} ] }. # and the value is {"f1": 123} # We encode it manually to avoid publishing it. $ kafka-ingest format=bytes topic=resolution-no-publish-writer timestamp=1 \\x00\x00\x00\x00\x01\xf6\x01 $ postgres-execute connection=postgres://mz_system@${testdrive.materialize-internal-sql-addr}/materialize DROP SCHEMA IF EXISTS public CASCADE CREATE SCHEMA public GRANT CREATE, USAGE ON SCHEMA public TO materialize > CREATE CONNECTION IF NOT EXISTS csr_conn TO CONFLUENT SCHEMA REGISTRY ( URL '${testdrive.schema-registry-url}' ); > CREATE CONNECTION kafka_conn TO KAFKA (BROKER '${testdrive.kafka-addr}', SECURITY PROTOCOL PLAINTEXT); > CREATE SOURCE resolution_no_publish_writer IN CLUSTER ${arg.single-replica-cluster} FROM KAFKA CONNECTION kafka_conn (TOPIC 'testdrive-resolution-no-publish-writer-${testdrive.seed}') ! CREATE TABLE resolution_no_publish_writer_tbl FROM SOURCE resolution_no_publish_writer (REFERENCE "testdrive-resolution-no-publish-writer-${testdrive.seed}") FORMAT AVRO USING CONFLUENT SCHEMA REGISTRY CONNECTION csr_conn ENVELOPE NONE contains:No value schema found