Column contains a single non null value (e.g constant).
(&self)
| 1090 | impl ColumnStatistics { |
| 1091 | /// Column contains a single non null value (e.g constant). |
| 1092 | pub fn is_singleton(&self) -> bool { |
| 1093 | match (&self.min_value, &self.max_value) { |
| 1094 | // Min and max values are the same and not infinity. |
| 1095 | (Precision::Exact(min), Precision::Exact(max)) => { |
| 1096 | !min.is_null() && !max.is_null() && (min == max) |
| 1097 | } |
| 1098 | (_, _) => false, |
| 1099 | } |
| 1100 | } |
| 1101 | |
| 1102 | /// Returns a [`ColumnStatistics`] instance having all [`Precision::Absent`] parameters. |
| 1103 | pub fn new_unknown() -> Self { |
no test coverage detected