[opt](stats) No more sync unknown stats since cannot serialize (#22775)

Gson can't serialize INFINITY under current configuration
This commit is contained in:
AKIRA
2023-08-10 11:46:56 +08:00
committed by GitHub
parent c1bc2c289b
commit 432c8f1d6a

View File

@ -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);