MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / ParseAddedColumnDesc

Method ParseAddedColumnDesc

src/codec/sdk_codec.cc:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void 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
113void SDKCodec::ParseSchemaVer(const VerSchema& ver_schema, const Schema& add_schema) {
114 if (format_version_ != 1) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected