check-from-v0.45.0-kafka-progress.td 1.2 KB

1234567891011121314151617181920
  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. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. # Ensure progress sources automatically created
  10. $ set-regex match=\d+ replacement=<NUMBER>
  11. > SELECT partition::text, "offset" FROM kafka_source_progress
  12. (<NUMBER>,) <NUMBER>
  13. [<NUMBER>,<NUMBER>] <NUMBER>
  14. # Later versions of MZ have complex interactions with automatically creating
  15. # clusters, so skip checking this create statement.
  16. # $ set-regex match=testdrive-upgrade-kafka-source-.*?' replacement=<TOPIC>'
  17. # > SHOW CREATE SOURCE kafka_source
  18. # materialize.public.kafka_source "CREATE SOURCE \"materialize\".\"public\".\"kafka_source\" FROM KAFKA CONNECTION \"materialize\".\"public\".\"kafka_conn\" (TOPIC = '<TOPIC>') FORMAT AVRO USING SCHEMA '{ \"type\": \"record\", \"name\": \"cpx\", \"fields\": [ {\"name\": \"a\", \"type\": \"long\"}, {\"name\": \"b\", \"type\": \"long\"} ] }' ENVELOPE NONE EXPOSE PROGRESS AS \"materialize\".\"public\".\"kafka_source_progress\""