| 97 | } |
| 98 | |
| 99 | void SDKCodec::ParseAddedColumnDesc(const Schema& column_desc) { |
| 100 | if (format_version_ == 1) { |
| 101 | uint32_t idx = schema_.size(); |
| 102 | for (const auto& col : column_desc) { |
| 103 | fedb::common::ColumnDesc* new_col = schema_.Add(); |
| 104 | new_col->CopyFrom(col); |
| 105 | schema_idx_map_.emplace(col.name(), idx); |
| 106 | idx++; |
| 107 | } |
| 108 | return; |
| 109 | } |
| 110 | modify_times_ = column_desc.size(); |
| 111 | } |
| 112 | |
| 113 | void SDKCodec::ParseSchemaVer(const VerSchema& ver_schema, const Schema& add_schema) { |
| 114 | if (format_version_ != 1) { |