[−][src]Enum datafusion::logicalplan::Expr
Relation expression
Variants
An aliased expression
Column(usize)
index into a value within the row or complex value
UnresolvedColumn(String)
Reference to column by name
Literal(ScalarValue)
literal value
binary expression e.g. "age > 21"
Fields of BinaryExpr
unary NOT
unary IS NOT NULL
unary IS NULL
cast a value to a different type
Fields of Cast
sort expression
Fields of Sort
scalar function
Fields of ScalarFunction
aggregate function
Fields of AggregateFunction
Wildcard
Implementations
impl Expr
[src]
pub fn get_type(&self, schema: &Schema) -> Result<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
pub fn not(&self) -> Expr
[src]
Not
pub fn alias(&self, name: &str) -> Expr
[src]
Alias
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,