| 11 | namespace tera { |
| 12 | |
| 13 | bool 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 | |
| 27 | bool IsSchemaLgDiff(const TableSchema& a, const TableSchema& b) { |
| 28 | std::stringstream s0; |
no test coverage detected