This is an automated email from the ASF dual-hosted git repository.

englefly pushed a commit to branch 2.1.11-rc01-guojin
in repository https://gitbox.apache.org/repos/asf/doris.git

commit d4b7058f1c3f8617a90a698ea806899634026162
Author: minghong <[email protected]>
AuthorDate: Wed Sep 3 10:39:25 2025 +0800

    pick54150
---
 .../src/main/java/org/apache/doris/statistics/Statistics.java       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/statistics/Statistics.java 
b/fe/fe-core/src/main/java/org/apache/doris/statistics/Statistics.java
index 8a42245e895..d193ea4796f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/statistics/Statistics.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/statistics/Statistics.java
@@ -145,7 +145,11 @@ public class Statistics {
             double tempSize = 0.0;
             for (ColumnStatistic s : expressionToColumnStats.values()) {
                 if (s != null) {
-                    tempSize += Math.max(1, 
Math.min(CharacterType.DEFAULT_WIDTH, s.avgSizeByte));
+                    double avgSize = s.avgSizeByte;
+                    if (!Double.isFinite(avgSize)) {
+                        avgSize = 1;
+                    }
+                    tempSize += Math.max(1, 
Math.min(CharacterType.DEFAULT_WIDTH, avgSize));
                 }
             }
             tupleSize = Math.max(1, tempSize);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to