Skip to content

Commit

Permalink
[chore](add_partition) add some log to investigate problem
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 19, 2023
1 parent 6a33e46 commit 5c82dc3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ public boolean equalsForDistribution(Column other) {
return true;
}

return name.equalsIgnoreCase(other.name)
boolean ok = name.equalsIgnoreCase(other.name)
&& Objects.equals(getDefaultValue(), other.getDefaultValue())
&& Objects.equals(aggregationType, other.aggregationType)
&& isAggregationTypeImplicit == other.isAggregationTypeImplicit
Expand All @@ -832,6 +832,22 @@ && getScale() == other.getScale()
&& visible == other.visible
&& Objects.equals(children, other.children)
&& Objects.equals(realDefaultValue, other.realDefaultValue);

return ok;
if (!ok) {
log.info("this column: name {} default value {} aggregationType {} isAggregationTypeImplicit {} "
+ "isKey {}, isAllowNull {}, datatype {}, strlen {}, precision {}, scale {}, visible {} "
+ "children {} realDefaultValue {}",
name, getDefaultValue(), aggregationType, isAggregationTypeImplicit, isKey, isAllowNull,
getDataType(), getStrLen(), getPrecision(), getScale(), visible, children, realDefaultValue);
log.info("other column: name {} default value {} aggregationType {} isAggregationTypeImplicit {} "
+ "isKey {}, isAllowNull {}, datatype {}, strlen {}, precision {}, scale {}, visible {} "
+ "children {} realDefaultValue {}",
other.name, other.getDefaultValue(), other.aggregationType, other.isAggregationTypeImplicit,
other.isKey, other.isAllowNull, other.getDataType(), other.getStrLen(), other.getPrecision(),
other.getScale(), other.visible, other.children, other.realDefaultValue);
}
return ok;
}

@Override
Expand Down

0 comments on commit 5c82dc3

Please sign in to comment.