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

Method is_true

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

Returns the set of possible values after applying the `is true` 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

1879 /// values in this set.
1880 /// The resulting set can only contain 'TRUE' and/or 'FALSE', never 'UNKNOWN'.
1881 pub fn is_true(&self) -> Result<Self> {
1882 let (t, f, u) = self.is_true_false_unknown()?;
1883
1884 match (t, f, u) {
1885 (true, false, false) => Ok(Self::TRUE),
1886 (true, _, _) => Ok(Self::TRUE_OR_FALSE),
1887 (false, _, _) => Ok(Self::FALSE),
1888 }
1889 }
1890
1891 /// Return true if the value is definitely false (and not null).
1892 pub fn is_certainly_false(&self) -> bool {

Callers 1

Calls 1

is_true_false_unknownMethod · 0.80

Tested by 1