kafka-headers-errors.td 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. # As of the Change Date specified in that file, in accordance with
  6. # the Business Source License, use of this software will be governed
  7. # by the Apache License, Version 2.0.
  8. $ set-arg-default single-replica-cluster=quickstart
  9. $ postgres-execute connection=postgres://mz_system:materialize@${testdrive.materialize-internal-sql-addr}
  10. ALTER SYSTEM SET enable_envelope_materialize = true
  11. # Note these are nonsense schemas, as this error happens before schema verification of any form
  12. $ set keyschema={}
  13. $ set schema={}
  14. $ kafka-create-topic topic=headers_src
  15. > CREATE CONNECTION kafka_conn
  16. TO KAFKA (BROKER '${testdrive.kafka-addr}', SECURITY PROTOCOL PLAINTEXT);
  17. ! CREATE SOURCE headers_src
  18. IN CLUSTER ${arg.single-replica-cluster}
  19. FROM KAFKA CONNECTION kafka_conn (TOPIC
  20. 'testdrive-headers_src-${testdrive.seed}')
  21. KEY FORMAT AVRO USING SCHEMA '${keyschema}'
  22. VALUE FORMAT AVRO USING SCHEMA '${schema}'
  23. INCLUDE HEADERS
  24. ENVELOPE MATERIALIZE
  25. contains:INCLUDE <metadata> requires ENVELOPE (NONE|UPSERT|DEBEZIUM)
  26. ! CREATE SOURCE headers_src
  27. IN CLUSTER ${arg.single-replica-cluster}
  28. FROM KAFKA CONNECTION kafka_conn (TOPIC
  29. 'testdrive-headers_src-${testdrive.seed}')
  30. KEY FORMAT AVRO USING SCHEMA '${keyschema}'
  31. VALUE FORMAT AVRO USING SCHEMA '${schema}'
  32. INCLUDE HEADERS
  33. ENVELOPE MATERIALIZE
  34. contains:INCLUDE <metadata> requires ENVELOPE (NONE|UPSERT|DEBEZIUM)
  35. ! CREATE SOURCE headers_src
  36. IN CLUSTER ${arg.single-replica-cluster}
  37. FROM LOAD GENERATOR COUNTER
  38. INCLUDE HEADERS
  39. contains:INCLUDE metadata only supported with `KEY VALUE` load generators