pub enum BuiltinScalarFunction {
Show 70 variants Abs, Acos, Asin, Atan, Atan2, 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, 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, Translate, Trim, Upper, RegexpMatch, Struct, ArrowTypeof,
}
Expand description

Enum of all built-in scalar functions

Variants

Abs

abs

Acos

acos

Asin

asin

Atan

atan

Atan2

atan2

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

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

Translate

translate

Trim

trim

Upper

upper

RegexpMatch

regexp_match

Struct

struct

ArrowTypeof

arrow_typeof

Implementations

an allowlist of functions to take zero arguments, so that they will get special treatment while executing.

Returns the Volatility of the builtin function.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.