(improvement) optimize schema data change monitoring (#333)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-11-06 22:11:56 +08:00
committed by GitHub
parent 6e3f871015
commit aa6c658a9a
14 changed files with 101 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ public class SchemaElement implements Serializable {
private String defaultAgg;
private int order;
private double order;
@Override
public boolean equals(Object o) {

View File

@@ -54,7 +54,11 @@ public class SemanticParseInfo {
@Override
public int compare(SchemaElement o1, SchemaElement o2) {
if (o1.getOrder() != o2.getOrder()) {
return o1.getOrder() - o2.getOrder();
if (o1.getOrder() < o2.getOrder()) {
return -1;
} else {
return 1;
}
}
int len1 = o1.getName().length();
int len2 = o2.getName().length();