pub struct CoreFunctionPlanner {}
Trait Implementations§
Source§impl Debug for CoreFunctionPlanner
impl Debug for CoreFunctionPlanner
Source§impl Default for CoreFunctionPlanner
impl Default for CoreFunctionPlanner
Source§fn default() -> CoreFunctionPlanner
fn default() -> CoreFunctionPlanner
Returns the “default value” for a type. Read more
Source§impl ExprPlanner for CoreFunctionPlanner
impl ExprPlanner for CoreFunctionPlanner
Source§fn plan_dictionary_literal(
&self,
expr: RawDictionaryExpr,
_schema: &DFSchema,
) -> Result<PlannerResult<RawDictionaryExpr>>
fn plan_dictionary_literal( &self, expr: RawDictionaryExpr, _schema: &DFSchema, ) -> Result<PlannerResult<RawDictionaryExpr>>
Plan the dictionary literal
{ key: value, ...}
Read moreSource§fn plan_struct_literal(
&self,
args: Vec<Expr>,
is_named_struct: bool,
) -> Result<PlannerResult<Vec<Expr>>>
fn plan_struct_literal( &self, args: Vec<Expr>, is_named_struct: bool, ) -> Result<PlannerResult<Vec<Expr>>>
Plans a struct
struct(expression1[, ..., expression_n])
literal based on the given input expressions.
This function takes a vector of expressions and a boolean flag indicating whether
the struct uses the optional name Read moreSource§fn plan_overlay(&self, args: Vec<Expr>) -> Result<PlannerResult<Vec<Expr>>>
fn plan_overlay(&self, args: Vec<Expr>) -> Result<PlannerResult<Vec<Expr>>>
Plans an overlay expression eg
overlay(str PLACING substr FROM pos [FOR count])
Read moreSource§fn plan_compound_identifier(
&self,
field: &Field,
qualifier: Option<&TableReference>,
nested_names: &[String],
) -> Result<PlannerResult<Vec<Expr>>>
fn plan_compound_identifier( &self, field: &Field, qualifier: Option<&TableReference>, nested_names: &[String], ) -> Result<PlannerResult<Vec<Expr>>>
Plans compound identifier eg
db.schema.table
for non-empty nested names Read moreSource§fn plan_binary_op(
&self,
expr: RawBinaryExpr,
_schema: &DFSchema,
) -> Result<PlannerResult<RawBinaryExpr>, DataFusionError>
fn plan_binary_op( &self, expr: RawBinaryExpr, _schema: &DFSchema, ) -> Result<PlannerResult<RawBinaryExpr>, DataFusionError>
Plan the binary operation between two expressions, returns original
BinaryExpr if not possible
Source§fn plan_field_access(
&self,
expr: RawFieldAccessExpr,
_schema: &DFSchema,
) -> Result<PlannerResult<RawFieldAccessExpr>, DataFusionError>
fn plan_field_access( &self, expr: RawFieldAccessExpr, _schema: &DFSchema, ) -> Result<PlannerResult<RawFieldAccessExpr>, DataFusionError>
Plan the field access expression Read more
Source§fn plan_array_literal(
&self,
exprs: Vec<Expr>,
_schema: &DFSchema,
) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
fn plan_array_literal( &self, exprs: Vec<Expr>, _schema: &DFSchema, ) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
Plan the array literal, returns OriginalArray if not possible Read more
fn plan_position( &self, args: Vec<Expr>, ) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
Source§fn plan_extract(
&self,
args: Vec<Expr>,
) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
fn plan_extract( &self, args: Vec<Expr>, ) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
Plan an extract expression, e.g.,
EXTRACT(month FROM foo)
Read moreSource§fn plan_substring(
&self,
args: Vec<Expr>,
) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
fn plan_substring( &self, args: Vec<Expr>, ) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
Plan an substring expression, e.g.,
SUBSTRING(<expr> [FROM <expr>] [FOR <expr>])
Read moreSource§fn plan_make_map(
&self,
args: Vec<Expr>,
) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
fn plan_make_map( &self, args: Vec<Expr>, ) -> Result<PlannerResult<Vec<Expr>>, DataFusionError>
Plan a make_map expression, e.g.,
make_map(key1, value1, key2, value2, ...)
Read moreSource§fn plan_any(
&self,
expr: RawBinaryExpr,
) -> Result<PlannerResult<RawBinaryExpr>, DataFusionError>
fn plan_any( &self, expr: RawBinaryExpr, ) -> Result<PlannerResult<RawBinaryExpr>, DataFusionError>
Auto Trait Implementations§
impl Freeze for CoreFunctionPlanner
impl RefUnwindSafe for CoreFunctionPlanner
impl Send for CoreFunctionPlanner
impl Sync for CoreFunctionPlanner
impl Unpin for CoreFunctionPlanner
impl UnwindSafe for CoreFunctionPlanner
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more