Returns the lesser of the given interval bounds. Assumes that a `NULL` value represents `INF`.
(first: &ScalarValue, second: &ScalarValue)
| 1353 | /// Returns the lesser of the given interval bounds. Assumes that a `NULL` |
| 1354 | /// value represents `INF`. |
| 1355 | fn min_of_bounds(first: &ScalarValue, second: &ScalarValue) -> ScalarValue { |
| 1356 | if !first.is_null() && (second.is_null() || first <= second) { |
| 1357 | first.clone() |
| 1358 | } else { |
| 1359 | second.clone() |
| 1360 | } |
| 1361 | } |
| 1362 | |
| 1363 | /// This function updates the given intervals by enforcing (i.e. propagating) |
| 1364 | /// the inequality `left > right` (or the `left >= right` inequality, if `strict` |
no test coverage detected
searching dependent graphs…