ClickHouse/tests/queries/0_stateless/data_avro/generate_avro.sh

18 lines
996 B
Bash
Raw Normal View History

2020-01-10 09:05:20 +00:00
#!/usr/bin/env bash
#avro tools: https://www.apache.org/dyn/closer.cgi?path=avro/avro-1.9.1/java/avro-tools-1.9.1.jar
avro-tools fromjson --schema-file primitive.avsc primitive.json > primitive.avro
avro-tools fromjson --schema-file complex.avsc complex.json > complex.avro
avro-tools fromjson --schema-file logical_types.avsc logical_types.json > logical_types.avro
avro-tools fromjson --schema-file empty.avsc empty.json > empty.avro
2020-02-01 04:13:12 +00:00
avro-tools fromjson --schema-file references.avsc references.json > references.avro
2020-04-18 20:15:39 +00:00
avro-tools fromjson --schema-file nested.avsc nested.json > nested.avro
avro-tools fromjson --schema-file nested_complex.avsc nested_complex.json > nested_complex.avro
2020-01-10 09:05:20 +00:00
#compression
avro-tools fromjson --codec null --schema-file simple.avsc simple.json > simple.null.avro
avro-tools fromjson --codec deflate --schema-file simple.avsc simple.json > simple.deflate.avro
2020-06-25 19:25:45 +00:00
avro-tools fromjson --codec snappy --schema-file simple.avsc simple.json > simple.snappy.avro