Skip to content

Commit

Permalink
[chore](add_partition) add some log to investigate problem (#24193)
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring authored and xiaokang committed Sep 21, 2023
1 parent 7897a93 commit c916925
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 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 @@ -818,7 +818,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 @@ -831,6 +831,21 @@ && getScale() == other.getScale()
&& visible == other.visible
&& Objects.equals(children, other.children)
&& Objects.equals(realDefaultValue, other.realDefaultValue);

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 c916925

Please sign in to comment.