Skip to content

Commit

Permalink
Fix population of history based stats entry info
Browse files Browse the repository at this point in the history
  • Loading branch information
feilong-liu committed Apr 4, 2024
1 parent 244d203 commit 6ff2a97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private PlanNodeStatsEstimate getStatistics(PlanNode planNode, Session session,
if (predictedPlanStatistics.getConfidence() > 0) {
return delegateStats.combineStats(
predictedPlanStatistics,
new HistoryBasedSourceInfo(entry.getKey().getHash(), inputTableStatistics, Optional.of(historicalPlanStatisticsEntry.get().getHistoricalPlanStatisticsEntryInfo())));
new HistoryBasedSourceInfo(entry.getKey().getHash(), inputTableStatistics, Optional.ofNullable(historicalPlanStatisticsEntry.get().getHistoricalPlanStatisticsEntryInfo())));
}
}
}
Expand Down

0 comments on commit 6ff2a97

Please sign in to comment.