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

Function IsSchemaCfDiff

src/utils/schema_utils.cc:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace tera {
12
13bool IsSchemaCfDiff(const TableSchema& a, const TableSchema& b) {
14 std::stringstream s0;
15 std::stringstream s1;
16 for (int i = 0; i < a.column_families_size(); ++i) {
17 s0 << a.column_families(i).ShortDebugString();
18 }
19 LOG(INFO) << "[utils] " << s0.str();
20 for (int i = 0; i < b.column_families_size(); ++i) {
21 s1 << b.column_families(i).ShortDebugString();
22 }
23 LOG(INFO) << "[utils] " << s1.str();
24 return (s0.str().compare(s1.str()) != 0);
25}
26
27bool IsSchemaLgDiff(const TableSchema& a, const TableSchema& b) {
28 std::stringstream s0;

Callers 3

SchemaCompareFunction · 0.85
UpdateTableMethod · 0.85
IsUpdateCfFunction · 0.85

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected