pub struct ConcatWsFunc { /* private fields */ }Available on crate feature
string_expressions only.Implementations§
Source§impl ConcatWsFunc
impl ConcatWsFunc
Trait Implementations§
Source§impl Debug for ConcatWsFunc
impl Debug for ConcatWsFunc
Source§impl Default for ConcatWsFunc
impl Default for ConcatWsFunc
Source§impl ScalarUDFImpl for ConcatWsFunc
impl ScalarUDFImpl for ConcatWsFunc
Source§fn invoke_with_args(
&self,
args: ScalarFunctionArgs<'_>,
) -> Result<ColumnarValue>
fn invoke_with_args( &self, args: ScalarFunctionArgs<'_>, ) -> Result<ColumnarValue>
Concatenates all but the first argument, with separators. The first argument is used as the separator string, and should not be NULL. Other NULL arguments are ignored. concat_ws(‘,’, ‘abcde’, 2, NULL, 22) = ‘abcde,2,22’
Source§fn simplify(
&self,
args: Vec<Expr>,
_info: &dyn SimplifyInfo,
) -> Result<ExprSimplifyResult>
fn simplify( &self, args: Vec<Expr>, _info: &dyn SimplifyInfo, ) -> Result<ExprSimplifyResult>
Simply the concat_ws function by
- folding to
nullif the delimiter is null - filtering out
nullarguments - using
concatto replaceconcat_wsif the delimiter is an empty string - concatenating contiguous literals if the delimiter is a literal.
Source§fn signature(&self) -> &Signature
fn signature(&self) -> &Signature
Returns the function’s
Signature for information about what input
types are accepted and the function’s Volatility.Source§fn documentation(&self) -> Option<&Documentation>
fn documentation(&self) -> Option<&Documentation>
Returns the documentation for this Scalar UDF. Read more
Source§fn display_name(&self, args: &[Expr]) -> Result<String, DataFusionError>
fn display_name(&self, args: &[Expr]) -> Result<String, DataFusionError>
Returns the user-defined display name of function, given the arguments Read more
Source§fn schema_name(&self, args: &[Expr]) -> Result<String, DataFusionError>
fn schema_name(&self, args: &[Expr]) -> Result<String, DataFusionError>
Returns the name of the column this expression would create Read more
Source§fn return_type_from_exprs(
&self,
_args: &[Expr],
_schema: &dyn ExprSchema,
arg_types: &[DataType],
) -> Result<DataType, DataFusionError>
fn return_type_from_exprs( &self, _args: &[Expr], _schema: &dyn ExprSchema, arg_types: &[DataType], ) -> Result<DataType, DataFusionError>
👎Deprecated since 45.0.0: Use
return_type_from_args insteadSource§fn return_type_from_args(
&self,
args: ReturnTypeArgs<'_>,
) -> Result<ReturnInfo, DataFusionError>
fn return_type_from_args( &self, args: ReturnTypeArgs<'_>, ) -> Result<ReturnInfo, DataFusionError>
What type will be returned by this function, given the arguments? Read more
Source§fn is_nullable(&self, _args: &[Expr], _schema: &dyn ExprSchema) -> bool
fn is_nullable(&self, _args: &[Expr], _schema: &dyn ExprSchema) -> bool
👎Deprecated since 45.0.0: Use
return_type_from_args instead. if you use is_nullable that returns non-nullable with return_type, you would need to switch to return_type_from_args, you might have errorSource§fn invoke(
&self,
_args: &[ColumnarValue],
) -> Result<ColumnarValue, DataFusionError>
fn invoke( &self, _args: &[ColumnarValue], ) -> Result<ColumnarValue, DataFusionError>
👎Deprecated since 42.1.0: Use
invoke_with_args insteadInvoke the function on
args, returning the appropriate result Read moreSource§fn invoke_batch(
&self,
args: &[ColumnarValue],
number_rows: usize,
) -> Result<ColumnarValue, DataFusionError>
fn invoke_batch( &self, args: &[ColumnarValue], number_rows: usize, ) -> Result<ColumnarValue, DataFusionError>
Invoke the function with
args and the number of rows,
returning the appropriate result. Read moreSource§fn invoke_no_args(
&self,
_number_rows: usize,
) -> Result<ColumnarValue, DataFusionError>
fn invoke_no_args( &self, _number_rows: usize, ) -> Result<ColumnarValue, DataFusionError>
👎Deprecated since 42.1.0: Use
invoke_with_args insteadInvoke the function without
args, instead the number of rows are provided,
returning the appropriate result. Read moreSource§fn aliases(&self) -> &[String]
fn aliases(&self) -> &[String]
Returns any aliases (alternate names) for this function. Read more
Source§fn short_circuits(&self) -> bool
fn short_circuits(&self) -> bool
Returns true if some of this
exprs subexpressions may not be evaluated
and thus any side effects (like divide by zero) may not be encountered
Setting this to true prevents certain optimizations such as common subexpression eliminationSource§fn evaluate_bounds(
&self,
_input: &[&Interval],
) -> Result<Interval, DataFusionError>
fn evaluate_bounds( &self, _input: &[&Interval], ) -> Result<Interval, DataFusionError>
Computes the output interval for a
ScalarUDFImpl, given the input
intervals. Read moreSource§fn propagate_constraints(
&self,
_interval: &Interval,
_inputs: &[&Interval],
) -> Result<Option<Vec<Interval>>, DataFusionError>
fn propagate_constraints( &self, _interval: &Interval, _inputs: &[&Interval], ) -> Result<Option<Vec<Interval>>, DataFusionError>
Updates bounds for child expressions, given a known interval for this
function. This is used to propagate constraints down through an expression
tree. Read more
Source§fn output_ordering(
&self,
inputs: &[ExprProperties],
) -> Result<SortProperties, DataFusionError>
fn output_ordering( &self, inputs: &[ExprProperties], ) -> Result<SortProperties, DataFusionError>
Calculates the
SortProperties of this function based on its children’s properties.Source§fn preserves_lex_ordering(
&self,
_inputs: &[ExprProperties],
) -> Result<bool, DataFusionError>
fn preserves_lex_ordering( &self, _inputs: &[ExprProperties], ) -> Result<bool, DataFusionError>
Whether the function preserves lexicographical ordering based on the input ordering
Source§fn coerce_types(
&self,
_arg_types: &[DataType],
) -> Result<Vec<DataType>, DataFusionError>
fn coerce_types( &self, _arg_types: &[DataType], ) -> Result<Vec<DataType>, DataFusionError>
Coerce arguments of a function call to types that the function can evaluate. Read more
Source§fn equals(&self, other: &dyn ScalarUDFImpl) -> bool
fn equals(&self, other: &dyn ScalarUDFImpl) -> bool
Return true if this scalar UDF is equal to the other. Read more
Source§fn hash_value(&self) -> u64
fn hash_value(&self) -> u64
Returns a hash value for this scalar UDF. Read more
Auto Trait Implementations§
impl Freeze for ConcatWsFunc
impl !RefUnwindSafe for ConcatWsFunc
impl Send for ConcatWsFunc
impl Sync for ConcatWsFunc
impl Unpin for ConcatWsFunc
impl !UnwindSafe for ConcatWsFunc
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