Kikyou1997 commented on code in PR #11179: URL: https://github.com/apache/doris/pull/11179#discussion_r929582472
########## fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStats.java: ########## @@ -76,6 +76,22 @@ public class ColumnStats { private LiteralExpr minValue; private LiteralExpr maxValue; + public ColumnStats(ColumnStats other) { + this.ndv = other.ndv; + this.avgSize = other.avgSize; + this.maxSize = other.maxSize; + this.numNulls = other.numNulls; + if (other.minValue != null) { + this.minValue = (LiteralExpr) other.minValue.clone(); Review Comment: To avoid coder change the child's stats unexpectedly when writing the stats logic for other internal node of the plan tree. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org