backport https://github.com/apache/doris/pull/35582 Remove useless case which may cause preHeat npe.
This commit is contained in:
@ -199,7 +199,10 @@ public class ColumnStatistic {
|
||||
columnStatisticBuilder.setUpdatedTime(row.get(13));
|
||||
return columnStatisticBuilder.build();
|
||||
} catch (Exception e) {
|
||||
LOG.warn("Failed to deserialize column statistics.", e);
|
||||
LOG.warn("Failed to deserialize column statistics. reason: [{}]. Row [{}]", e.getMessage(), row);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(e);
|
||||
}
|
||||
return ColumnStatistic.UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
@ -175,7 +175,10 @@ public class StatisticsCache {
|
||||
}
|
||||
putCache(k, c);
|
||||
} catch (Throwable t) {
|
||||
LOG.warn("Error when preheating stats cache", t);
|
||||
LOG.warn("Error when preheating stats cache. reason: [{}]. Row:[{}]", t.getMessage(), r);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user