Fix analyze empty external NPE bug. (#29675)

This commit is contained in:
Jibing-Li
2024-01-08 22:49:40 +08:00
committed by yiguolei
parent 54d2528c69
commit 40badbf5c5
3 changed files with 103 additions and 7 deletions

View File

@ -81,7 +81,7 @@ public class ColStatsData {
public ColStatsData(ResultRow row) {
this.statsId = new StatsId(row);
this.count = (long) Double.parseDouble(row.get(7));
this.count = (long) Double.parseDouble(row.getWithDefault(7, "0"));
this.ndv = (long) Double.parseDouble(row.getWithDefault(8, "0"));
this.nullCount = (long) Double.parseDouble(row.getWithDefault(9, "0"));
this.minLit = row.get(10);