03-after-join.td 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #
  10. # Ingest some more data and read it back
  11. #
  12. $ set schema={"type": "record", "name": "schema", "fields": [ {"name": "f1", "type": "string" } ] }
  13. $ kafka-ingest format=avro topic=kafka-multi-broker schema=${schema} timestamp=21
  14. {"f1": "04-01" }
  15. $ kafka-ingest format=avro topic=kafka-multi-broker schema=${schema} timestamp=22
  16. {"f1": "04-02" }
  17. $ kafka-ingest format=avro topic=kafka-multi-broker schema=${schema} timestamp=23
  18. {"f1": "04-03" }
  19. > SELECT f1 FROM kafka_multi_broker_tbl
  20. 01-01
  21. 01-02
  22. 01-03
  23. 02-01
  24. 02-02
  25. 02-03
  26. 03-01
  27. 03-02
  28. 03-03
  29. 04-01
  30. 04-02
  31. 04-03
  32. $ kafka-verify-data format=avro sink=materialize.public.multi_broker_sink sort-messages=true
  33. {"before": null, "after": {"row": {"f1": "01-01" }}}
  34. {"before": null, "after": {"row": {"f1": "01-02" }}}
  35. {"before": null, "after": {"row": {"f1": "01-03" }}}
  36. {"before": null, "after": {"row": {"f1": "02-01" }}}
  37. {"before": null, "after": {"row": {"f1": "02-02" }}}
  38. {"before": null, "after": {"row": {"f1": "02-03" }}}
  39. {"before": null, "after": {"row": {"f1": "03-01" }}}
  40. {"before": null, "after": {"row": {"f1": "03-02" }}}
  41. {"before": null, "after": {"row": {"f1": "03-03" }}}
  42. {"before": null, "after": {"row": {"f1": "04-01" }}}
  43. {"before": null, "after": {"row": {"f1": "04-02" }}}
  44. {"before": null, "after": {"row": {"f1": "04-03" }}}