From 5c82dc30720eaa7a37fa4fb0a1abc9cb5bc2463d Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Mon, 11 Sep 2023 19:29:45 +0800 Subject: [PATCH] [chore](add_partition) add some log to investigate problem --- .../java/org/apache/doris/catalog/Column.java | 18 +++++++++++++++++- 1 file changed, 17 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 a62ac5a482573c6..7b09f237c814e59 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 @@ -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 @@ -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