12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- # 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 that Protobuf files with too few or too many messages are handled
- # correctly.
- $ kafka-create-topic topic=too-few partitions=1
- $ kafka-create-topic topic=too-many partitions=1
- $ schema-registry-publish subject=testdrive-too-few-${testdrive.seed}-value schema-type=protobuf
- syntax = "proto3";
- $ schema-registry-publish subject=testdrive-too-many-${testdrive.seed}-value schema-type=protobuf
- syntax = "proto3";
- message Message1 {}
- message Message2 {}
- > 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 fail_too_few
- IN CLUSTER ${arg.single-replica-cluster}
- FROM KAFKA CONNECTION kafka_conn (TOPIC 'testdrive-too-few-${testdrive.seed}')
- ! CREATE TABLE fail_tbl FROM SOURCE fail_too_few (REFERENCE "testdrive-too-few-${testdrive.seed}")
- FORMAT PROTOBUF USING CONFLUENT SCHEMA REGISTRY CONNECTION csr_conn
- contains:Protobuf schemas with no messages not yet supported
- > CREATE SOURCE fail_too_many
- IN CLUSTER ${arg.single-replica-cluster}
- FROM KAFKA CONNECTION kafka_conn (TOPIC 'testdrive-too-many-${testdrive.seed}')
- ! CREATE TABLE fail_tbl FROM SOURCE fail_too_many (REFERENCE "testdrive-too-many-${testdrive.seed}")
- FORMAT PROTOBUF USING CONFLUENT SCHEMA REGISTRY CONNECTION csr_conn
- contains:Protobuf schemas with multiple messages not yet supported
|