[chore](add_partition) add some log to investigate problem (#24193)

This commit is contained in:
Yongqiang YANG
2023-09-21 12:46:18 +08:00
committed by GitHub
parent 4c79a76491
commit 7efaf9d0c8

View File

@ -819,7 +819,7 @@ public class Column implements Writable, GsonPostProcessable {
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
@ -832,6 +832,21 @@ public class Column implements Writable, GsonPostProcessable {
&& 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