pub enum BuiltinScalarFunction {
Show 117 variants
Abs,
Acos,
Asin,
Atan,
Atan2,
Acosh,
Asinh,
Atanh,
Cbrt,
Ceil,
Coalesce,
Cos,
Cosh,
Decode,
Degrees,
Digest,
Encode,
Exp,
Factorial,
Floor,
Gcd,
Lcm,
Isnan,
Iszero,
Ln,
Log,
Log10,
Log2,
Nanvl,
Pi,
Power,
Radians,
Round,
Signum,
Sin,
Sinh,
Sqrt,
Tan,
Tanh,
Trunc,
Cot,
ArrayAppend,
ArrayConcat,
ArrayHas,
ArrayHasAll,
ArrayHasAny,
ArrayPopBack,
ArrayDims,
ArrayElement,
ArrayEmpty,
ArrayLength,
ArrayNdims,
ArrayPosition,
ArrayPositions,
ArrayPrepend,
ArrayRemove,
ArrayRemoveN,
ArrayRemoveAll,
ArrayRepeat,
ArrayReplace,
ArrayReplaceN,
ArrayReplaceAll,
ArraySlice,
ArrayToString,
Cardinality,
MakeArray,
Flatten,
Struct,
Ascii,
BitLength,
Btrim,
CharacterLength,
Chr,
Concat,
ConcatWithSeparator,
DatePart,
DateTrunc,
DateBin,
InitCap,
Left,
Lpad,
Lower,
Ltrim,
MD5,
NullIf,
OctetLength,
Random,
RegexpReplace,
Repeat,
Replace,
Reverse,
Right,
Rpad,
Rtrim,
SHA224,
SHA256,
SHA384,
SHA512,
SplitPart,
StartsWith,
Strpos,
Substr,
ToHex,
ToTimestamp,
ToTimestampMillis,
ToTimestampMicros,
ToTimestampSeconds,
FromUnixtime,
Now,
CurrentDate,
CurrentTime,
Translate,
Trim,
Upper,
Uuid,
RegexpMatch,
ArrowTypeof,
}
Expand description
Enum of all built-in scalar functions
Variants§
Abs
abs
Acos
acos
Asin
asin
Atan
atan
Atan2
atan2
Acosh
acosh
Asinh
asinh
Atanh
atanh
Cbrt
cbrt
Ceil
ceil
Coalesce
coalesce
Cos
cos
Cosh
cos
Decode
Decode
Degrees
degrees
Digest
Digest
Encode
Encode
Exp
exp
Factorial
factorial
Floor
floor
Gcd
gcd, Greatest common divisor
Lcm
lcm, Least common multiple
Isnan
isnan
Iszero
iszero
Ln
ln, Natural logarithm
Log
log, same as log10
Log10
log10
Log2
log2
Nanvl
nanvl
Pi
pi
Power
power
Radians
radians
Round
round
Signum
signum
Sin
sin
Sinh
sinh
Sqrt
sqrt
Tan
tan
Tanh
tanh
Trunc
trunc
Cot
cot
ArrayAppend
array_append
ArrayConcat
array_concat
ArrayHas
array_has
ArrayHasAll
array_has_all
ArrayHasAny
array_has_any
ArrayPopBack
array_pop_back
ArrayDims
array_dims
ArrayElement
array_element
ArrayEmpty
array_empty
ArrayLength
array_length
ArrayNdims
array_ndims
ArrayPosition
array_position
ArrayPositions
array_positions
ArrayPrepend
array_prepend
ArrayRemove
array_remove
ArrayRemoveN
array_remove_n
ArrayRemoveAll
array_remove_all
ArrayRepeat
array_repeat
ArrayReplace
array_replace
ArrayReplaceN
array_replace_n
ArrayReplaceAll
array_replace_all
ArraySlice
array_slice
ArrayToString
array_to_string
Cardinality
cardinality
MakeArray
construct an array from columns
Flatten
Flatten
Struct
struct
Ascii
ascii
BitLength
bit_length
Btrim
btrim
CharacterLength
character_length
Chr
chr
Concat
concat
ConcatWithSeparator
concat_ws
DatePart
date_part
DateTrunc
date_trunc
DateBin
date_bin
InitCap
initcap
Left
left
Lpad
lpad
Lower
lower
Ltrim
ltrim
MD5
md5
NullIf
nullif
OctetLength
octet_length
Random
random
RegexpReplace
regexp_replace
Repeat
repeat
Replace
replace
Reverse
reverse
Right
right
Rpad
rpad
Rtrim
rtrim
SHA224
sha224
SHA256
sha256
SHA384
sha384
SHA512
Sha512
SplitPart
split_part
StartsWith
starts_with
Strpos
strpos
Substr
substr
ToHex
to_hex
ToTimestamp
to_timestamp
ToTimestampMillis
to_timestamp_millis
ToTimestampMicros
to_timestamp_micros
ToTimestampSeconds
to_timestamp_seconds
FromUnixtime
from_unixtime
Now
now
CurrentDate
current_date
CurrentTime
current_time
Translate
translate
Trim
trim
Upper
upper
Uuid
uuid
RegexpMatch
regexp_match
ArrowTypeof
arrow_typeof
Implementations§
source§impl BuiltinScalarFunction
impl BuiltinScalarFunction
sourcepub fn supports_zero_argument(&self) -> bool
pub fn supports_zero_argument(&self) -> bool
an allowlist of functions to take zero arguments, so that they will get special treatment while executing.
sourcepub fn volatility(&self) -> Volatility
pub fn volatility(&self) -> Volatility
Returns the Volatility of the builtin function.
sourcepub fn return_type(self, input_expr_types: &[DataType]) -> Result<DataType>
pub fn return_type(self, input_expr_types: &[DataType]) -> Result<DataType>
Returns the output [DataType
] of this function
Trait Implementations§
source§impl Clone for BuiltinScalarFunction
impl Clone for BuiltinScalarFunction
source§fn clone(&self) -> BuiltinScalarFunction
fn clone(&self) -> BuiltinScalarFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuiltinScalarFunction
impl Debug for BuiltinScalarFunction
source§impl Display for BuiltinScalarFunction
impl Display for BuiltinScalarFunction
source§impl FromStr for BuiltinScalarFunction
impl FromStr for BuiltinScalarFunction
§type Err = DataFusionError
type Err = DataFusionError
source§impl Hash for BuiltinScalarFunction
impl Hash for BuiltinScalarFunction
source§impl PartialEq<BuiltinScalarFunction> for BuiltinScalarFunction
impl PartialEq<BuiltinScalarFunction> for BuiltinScalarFunction
source§fn eq(&self, other: &BuiltinScalarFunction) -> bool
fn eq(&self, other: &BuiltinScalarFunction) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for BuiltinScalarFunction
impl Eq for BuiltinScalarFunction
impl StructuralEq for BuiltinScalarFunction
impl StructuralPartialEq for BuiltinScalarFunction
Auto Trait Implementations§
impl RefUnwindSafe for BuiltinScalarFunction
impl Send for BuiltinScalarFunction
impl Sync for BuiltinScalarFunction
impl Unpin for BuiltinScalarFunction
impl UnwindSafe for BuiltinScalarFunction
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.