Not supported in ClickHouse Cloud
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;
};