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

morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 432c8f1d6a [opt](stats) No more sync unknown stats since cannot 
serialize (#22775)
432c8f1d6a is described below

commit 432c8f1d6aabfed113e9d556530bb9961832bdae
Author: AKIRA <[email protected]>
AuthorDate: Thu Aug 10 11:46:56 2023 +0800

    [opt](stats) No more sync unknown stats since cannot serialize (#22775)
    
    Gson can't serialize INFINITY under current configuration
---
 .../src/main/java/org/apache/doris/statistics/StatisticsCache.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsCache.java 
b/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsCache.java
index 2a2ea06135..12e306ad0c 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsCache.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsCache.java
@@ -241,6 +241,9 @@ public class StatisticsCache {
         final StatisticsCacheKey k =
                 new StatisticsCacheKey(tableId, idxId, colName);
         final ColumnStatistic c = ColumnStatistic.fromResultRow(columnResults);
+        if (c == ColumnStatistic.UNKNOWN) {
+            return;
+        }
         putCache(k, c);
         TUpdateFollowerStatsCacheRequest updateFollowerStatsCacheRequest = new 
TUpdateFollowerStatsCacheRequest();
         updateFollowerStatsCacheRequest.key = GsonUtils.GSON.toJson(k);


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

Reply via email to