[−][src]Enum datafusion::logicalplan::Expr
Relation expression
Variants
Column(usize)
index into a value within the row or complex value
Literal(ScalarValue)
literal value
binary expression e.g. "age > 21"
Fields of BinaryExpr
unary IS NOT NULL
unary IS NULL
cast a value to a different type
Fields of Cast
sort expression
scalar function
Fields of ScalarFunction
aggregate function
Fields of AggregateFunction
Methods
impl Expr
[src]
pub fn get_type(&self, schema: &Schema) -> DataType
[src]
Find the DataType
for the expression
pub fn cast_to(&self, cast_to_type: &DataType, schema: &Schema) -> Result<Expr>
[src]
Perform a type cast on the expression value.
Will Err
if the type cast cannot be performed.
pub fn eq(&self, other: &Expr) -> Expr
[src]
Equal
pub fn not_eq(&self, other: &Expr) -> Expr
[src]
Not equal
pub fn gt(&self, other: &Expr) -> Expr
[src]
Greater than
pub fn gt_eq(&self, other: &Expr) -> Expr
[src]
Greater than or equal to
pub fn lt(&self, other: &Expr) -> Expr
[src]
Less than
pub fn lt_eq(&self, other: &Expr) -> Expr
[src]
Less than or equal to
Trait Implementations
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl PartialEq<Expr> for Expr
[src]
impl StructuralPartialEq for Expr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,