envelope-none-after.td 963 B

12345678910111213141516171819202122232425262728
  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. $ set schema={
  10. "type" : "record",
  11. "name" : "test",
  12. "fields" : [
  13. {"name":"f1", "type":"long"}
  14. ]
  15. }
  16. > SELECT COUNT(*) FROM envelope_none_tbl;
  17. 10000
  18. $ kafka-ingest format=avro topic=envelope-none schema=${schema} repeat=5000
  19. {"f1": ${kafka-ingest.iteration}}
  20. $ kafka-ingest format=avro topic=envelope-none key-format=avro key-schema=${schema} schema=${schema} repeat=5000
  21. {"f1": ${kafka-ingest.iteration}} {"f1": ${kafka-ingest.iteration}}
  22. > SELECT COUNT(*), COUNT(DISTINCT f1), MIN(f1), MAX(f1) FROM envelope_none_tbl;
  23. 20000 5000 0 4999