1 | #include "duckdb/optimizer/statistics_propagator.hpp" |
---|---|
2 | #include "duckdb/planner/expression/bound_columnref_expression.hpp" |
3 | |
4 | namespace duckdb { |
5 | |
6 | unique_ptr<BaseStatistics> StatisticsPropagator::PropagateExpression(BoundColumnRefExpression &colref, |
7 | unique_ptr<Expression> *expr_ptr) { |
8 | auto stats = statistics_map.find(x: colref.binding); |
9 | if (stats == statistics_map.end()) { |
10 | return nullptr; |
11 | } |
12 | return stats->second->ToUnique(); |
13 | } |
14 | |
15 | } // namespace duckdb |
16 |