12345678910111213141516171819202122232425262728 |
- # 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 schema={
- "type" : "record",
- "name" : "test",
- "fields" : [
- {"name":"f1", "type":"long"}
- ]
- }
- > SELECT COUNT(*) FROM envelope_none_tbl;
- 10000
- $ kafka-ingest format=avro topic=envelope-none schema=${schema} repeat=5000
- {"f1": ${kafka-ingest.iteration}}
- $ kafka-ingest format=avro topic=envelope-none key-format=avro key-schema=${schema} schema=${schema} repeat=5000
- {"f1": ${kafka-ingest.iteration}} {"f1": ${kafka-ingest.iteration}}
- > SELECT COUNT(*), COUNT(DISTINCT f1), MIN(f1), MAX(f1) FROM envelope_none_tbl;
- 20000 5000 0 4999
|