This commit is contained in:
aozhiwei 2018-10-27 13:46:12 +08:00
parent d08a92ba6c
commit 2dafab9662

View File

@ -24,6 +24,9 @@ bool ReadCsvMetaFile(const std::string& filename,
for (int i = 0; i < descriptor->field_count(); ++i) {
const google::protobuf::FieldDescriptor* field_desc = descriptor->field(i);
const std::string& field_name = field_desc->name();
if (field_name.empty() || field_name[0] == '_') {
continue;
}
switch (field_desc->cpp_type()) {
case google::protobuf::FieldDescriptor::CPPTYPE_STRING: