This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit c9169255ea66da65b674323d05c494e4c8f9534e Author: Yongqiang YANG <98214048+dataroar...@users.noreply.github.com> AuthorDate: Thu Sep 21 12:46:18 2023 +0800 [chore](add_partition) add some log to investigate problem (#24193) --- .../src/main/java/org/apache/doris/catalog/Column.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java index bfb26aad40..650e24d92c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java @@ -818,7 +818,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 @@ -831,6 +831,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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org