Skip to content

Commit

Permalink
[opt](stats) No more sync unknown stats since cannot serialize (#22775)
Browse files Browse the repository at this point in the history
Gson can't serialize INFINITY under current configuration
  • Loading branch information
Kikyou1997 authored and xiaokang committed Aug 11, 2023
1 parent 7a715be commit d70bd94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ public void syncLoadColStats(long tableId, long idxId, String colName) {
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);
Expand Down

0 comments on commit d70bd94

Please sign in to comment.