pub enum BuiltinScalarFunction {
Show 63 variants
Abs,
Acos,
Asin,
Atan,
Ceil,
Cos,
Digest,
Exp,
Floor,
Ln,
Log,
Log10,
Log2,
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,
}
Expand description
Enum of all built-in scalar functions
Variants
Abs
abs
Acos
acos
Asin
asin
Atan
atan
Ceil
ceil
Cos
cos
Digest
Digest
Exp
exp
Floor
floor
Ln
ln, Natural logarithm
Log
log, same as log10
Log10
log10
Log2
log2
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
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
sourcepub fn clone(&self) -> BuiltinScalarFunction
pub 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.
sourcepub fn from_str(name: &str) -> Result<BuiltinScalarFunction, DataFusionError>
pub fn from_str(name: &str) -> Result<BuiltinScalarFunction, DataFusionError>
Parses a string s
to return a value of this type. Read more
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more