MCPcopy Create free account
hub / github.com/apache/datafusion / is_false

Method is_false

datafusion/expr-common/src/interval_arithmetic.rs:1899–1907  ·  view source on GitHub ↗

Returns the set of possible values after applying the `is false` test on all values in this set. The resulting set can only contain 'TRUE' and/or 'FALSE', never 'UNKNOWN'.

(&self)

Source from the content-addressed store, hash-verified

1897 /// values in this set.
1898 /// The resulting set can only contain 'TRUE' and/or 'FALSE', never 'UNKNOWN'.
1899 pub fn is_false(&self) -> Result<Self> {
1900 let (t, f, u) = self.is_true_false_unknown()?;
1901
1902 match (t, f, u) {
1903 (false, true, false) => Ok(Self::TRUE),
1904 (_, true, _) => Ok(Self::TRUE_OR_FALSE),
1905 (_, false, _) => Ok(Self::FALSE),
1906 }
1907 }
1908
1909 /// Return true if the value is definitely null (and not true or false).
1910 pub fn is_certainly_unknown(&self) -> bool {

Callers 1

Calls 1

is_true_false_unknownMethod · 0.80

Tested by 1