pub enum BuiltinScalarFunction {
Show 66 variants
Abs,
Acos,
Asin,
Atan,
Ceil,
Coalesce,
Cos,
Digest,
Exp,
Floor,
Ln,
Log,
Log10,
Log2,
Power,
Round,
Signum,
Sin,
Sqrt,
Tan,
Trunc,
Array,
Ascii,
BitLength,
Btrim,
CharacterLength,
Chr,
Concat,
ConcatWithSeparator,
DatePart,
DateTrunc,
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,
Now,
Translate,
Trim,
Upper,
RegexpMatch,
Struct,
}
Expand description
Enum of all built-in scalar functions
Variants
Abs
abs
Acos
acos
Asin
asin
Atan
atan
Ceil
ceil
Coalesce
coalesce
Cos
cos
Digest
Digest
Exp
exp
Floor
floor
Ln
ln, Natural logarithm
Log
log, same as log10
Log10
log10
Log2
log2
Power
power
Round
round
Signum
signum
Sin
sin
Sqrt
sqrt
Tan
tan
Trunc
trunc
Array
construct an array from columns
Ascii
ascii
BitLength
bit_length
Btrim
btrim
CharacterLength
character_length
Chr
chr
Concat
concat
ConcatWithSeparator
concat_ws
DatePart
date_part
DateTrunc
date_trunc
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
Now
now
Translate
translate
Trim
trim
Upper
upper
RegexpMatch
regexp_match
Struct
struct
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Clone for BuiltinScalarFunction
impl Clone for BuiltinScalarFunction
sourcefn clone(&self) -> BuiltinScalarFunction
fn clone(&self) -> BuiltinScalarFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BuiltinScalarFunction
impl Debug for BuiltinScalarFunction
sourceimpl Display for BuiltinScalarFunction
impl Display for BuiltinScalarFunction
sourceimpl FromStr for BuiltinScalarFunction
impl FromStr for BuiltinScalarFunction
type Err = DataFusionError
type Err = DataFusionError
The associated error which can be returned from parsing.
sourceimpl Hash for BuiltinScalarFunction
impl Hash 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.