Returns true if the statistics indicate that the segment can contain values that satisfy that filter.
379788 {
379789 if (!stats.CanHaveNoNull()) {
379790
379791 return FilterPropagateResult::FILTER_ALWAYS_FALSE;
379792 }
379793 FilterPropagateResult result;
379794 D_ASSERT(
constant.type().id() == stats.GetType().id());
379795 switch (
constant.type().InternalType()) {
379800 case PhysicalType::UINT128:
379805 case PhysicalType::INT128:
379809 break;
379811 switch (stats.GetStatsType()) {
379812 case StatisticsType::STRING_STATS:
379814 break;
379815 default:
379816 return FilterPropagateResult::NO_PRUNING_POSSIBLE;
379817 }
379818 break;
379819 default:
379820 return FilterPropagateResult::NO_PRUNING_POSSIBLE;
379821 }
379822 if (result == FilterPropagateResult::FILTER_ALWAYS_TRUE) {
379823
379824
379825 if (stats.CanHaveNull()) {
379826 return FilterPropagateResult::NO_PRUNING_POSSIBLE;
379827 }
379828 }
379829 return result;
379830}
@ UINT32
Unsigned 32-bit little-endian integer.
Definition duckdb.hpp:2758
@ UINT16
Unsigned 16-bit little-endian integer.
Definition duckdb.hpp:2752
@ INT64
Signed 64-bit little-endian integer.
Definition duckdb.hpp:2767
@ INT16
Signed 16-bit little-endian integer.
Definition duckdb.hpp:2755
@ INT32
Signed 32-bit little-endian integer.
Definition duckdb.hpp:2761
@ UINT64
Unsigned 64-bit little-endian integer.
Definition duckdb.hpp:2764
@ VARCHAR
DuckDB Extensions.
Definition duckdb.hpp:2847
@ FLOAT
4-byte floating point value
Definition duckdb.hpp:2773
@ UINT8
Unsigned 8-bit little-endian integer.
Definition duckdb.hpp:2746
@ INT8
Signed 8-bit little-endian integer.
Definition duckdb.hpp:2749
@ DOUBLE
8-byte floating point value
Definition duckdb.hpp:2776
static DUCKDB_API FilterPropagateResult CheckZonemap(const BaseStatistics &stats, ExpressionType comparison_type, array_ptr< const Value > constants)
Check whether or not a given comparison with a constant could possibly be satisfied by rows given the...
Definition duckdb.cpp:424094