MCPcopy Create free account
hub / github.com/baidu/tera / IsSchemaLgDiff

Function IsSchemaLgDiff

src/utils/schema_utils.cc:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool IsSchemaLgDiff(const TableSchema& a, const TableSchema& b) {
28 std::stringstream s0;
29 std::stringstream s1;
30 for (int i = 0; i < a.locality_groups_size(); ++i) {
31 s0 << a.locality_groups(i).ShortDebugString();
32 }
33 LOG(INFO) << "[utils] " << s0.str();
34 for (int i = 0; i < b.locality_groups_size(); ++i) {
35 s1 << b.locality_groups(i).ShortDebugString();
36 }
37 LOG(INFO) << "[utils] " << s1.str();
38 return (s0.str().compare(s1.str()) != 0);
39}
40
41} // namespace tera

Callers 2

SchemaCompareFunction · 0.85
UpdateTableMethod · 0.85

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected