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;
};