43.6k
- All Integrations
- Language clients▼
- ClickPipes▼
- Native clients & interfaces▼
- Data sources▼
- Data visualization▼
- Data formats▼
- 模式推断
- 二进制和原生
- CSV 和 TSV
- JSON▼
- Parquet
- SQL 转储
- Avro、Arrow 和 ORC
- 正则表达式和模板
- 查看所有格式▼
- Data ingestion▼
- 工具▼
| 输入 | 输出 | 别名 |
|---|---|---|
| ✔ | ✔ |
ProtobufList 格式类似于 Protobuf 格式,但行以包含在固定名称为 "Envelope" 的消息中的子消息序列表示。
例如:
SELECT * FROM test.table FORMAT ProtobufList SETTINGS format_schema = 'schemafile:MessageType'
cat protobuflist_messages.bin | clickhouse-client --query "INSERT INTO test.table FORMAT ProtobufList SETTINGS format_schema='schemafile:MessageType'"
其中文件 schemafile.proto 的内容如下:
syntax = "proto3";
message Envelope {
message MessageType {
string name = 1;
string surname = 2;
uint32 birthDate = 3;
repeated string phoneNumbers = 4;
};
MessageType row = 1;
};