Struct datafusion_expr::expr_fn::ExprFuncBuilder
source · pub struct ExprFuncBuilder { /* private fields */ }
Expand description
Implementation of ExprFunctionExt
.
See ExprFunctionExt
for usage and examples
Implementations§
source§impl ExprFuncBuilder
impl ExprFuncBuilder
sourcepub fn build(self) -> Result<Expr>
pub fn build(self) -> Result<Expr>
Updates and returns the in progress Expr::AggregateFunction
or Expr::WindowFunction
§Errors:
Returns an error if this builder ExprFunctionExt
was used with an
Expr
variant other than Expr::AggregateFunction
or Expr::WindowFunction
Trait Implementations§
source§impl Clone for ExprFuncBuilder
impl Clone for ExprFuncBuilder
source§fn clone(&self) -> ExprFuncBuilder
fn clone(&self) -> ExprFuncBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExprFuncBuilder
impl Debug for ExprFuncBuilder
source§impl ExprFunctionExt for ExprFuncBuilder
impl ExprFunctionExt for ExprFuncBuilder
source§fn order_by(self, order_by: Vec<Expr>) -> ExprFuncBuilder
fn order_by(self, order_by: Vec<Expr>) -> ExprFuncBuilder
Add ORDER BY <order_by>
Note: order_by
must be Expr::Sort
source§fn filter(self, filter: Expr) -> ExprFuncBuilder
fn filter(self, filter: Expr) -> ExprFuncBuilder
Add FILTER <filter>
source§fn distinct(self) -> ExprFuncBuilder
fn distinct(self) -> ExprFuncBuilder
Add DISTINCT
source§fn null_treatment(
self,
null_treatment: impl Into<Option<NullTreatment>>,
) -> ExprFuncBuilder
fn null_treatment( self, null_treatment: impl Into<Option<NullTreatment>>, ) -> ExprFuncBuilder
Add RESPECT NULLS
or IGNORE NULLS
source§fn partition_by(self, partition_by: Vec<Expr>) -> ExprFuncBuilder
fn partition_by(self, partition_by: Vec<Expr>) -> ExprFuncBuilder
Add
PARTITION BY
source§fn window_frame(self, window_frame: WindowFrame) -> ExprFuncBuilder
fn window_frame(self, window_frame: WindowFrame) -> ExprFuncBuilder
Add appropriate window frame conditions
Auto Trait Implementations§
impl Freeze for ExprFuncBuilder
impl !RefUnwindSafe for ExprFuncBuilder
impl Send for ExprFuncBuilder
impl Sync for ExprFuncBuilder
impl Unpin for ExprFuncBuilder
impl !UnwindSafe for ExprFuncBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)