mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
15 lines
825 B
Bash
Executable File
15 lines
825 B
Bash
Executable File
#!/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
|
|
avro-tools fromjson --schema-file references.avsc references.json > references.avro
|
|
|
|
#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
|
|
avro-tools fromjson --codec snappy --schema-file simple.avsc simple.json > simple.snappy.avro |