Expand description
GrepTime User Define Function module
allow Python Coprocessor Function to use already implemented udf functions from datafusion and GrepTime DB itself
Structs§
Constants§
- DOC 🔒
Functions§
- abs 🔒simple math function, the backing implement is datafusion’s
abs
math function - acos 🔒simple math function, the backing implement is datafusion’s
acos
math function - Not implement in datafusion TODO(discord9): use greptime’s own impl instead
- argmax 🔒
- argmin 🔒
- effectively equals to
list(vector)
- asin 🔒simple math function, the backing implement is datafusion’s
asin
math function - atan 🔒simple math function, the backing implement is datafusion’s
atan
math function - avg 🔒directly port from datafusion’s
avg
function - ceil 🔒simple math function, the backing implement is datafusion’s
ceil
math function - clip 🔒
- col 🔒
- cos 🔒simple math function, the backing implement is datafusion’s
cos
math function - count 🔒
- get
__dataframe__
from globals and return it TODO(discord9): this is a terrible hack, we should find a better way to get__dataframe__
- datetime 🔒
- diff 🔒
- exp 🔒simple math function, the backing implement is datafusion’s
exp
math function - first 🔒return first element in a
PyVector
in sliced newPyVector
, if vector’s length is zero, return a zero sized slice instead - floor 🔒simple math function, the backing implement is datafusion’s
floor
math function - generate interval time point
- interval 🔒
func
: exec on sliding window slice of givenarr
, expect it to always return a PyVector of one elementts
: a vector of time stamp, expect to be Monotonous increasearr
: actual data vectorduration
: the size of sliding window, also is the default step of sliding window’s per step - last 🔒return last element in a
PyVector
in sliced newPyVector
, if vector’s length is zero, return a zero sized slice instead - lit 🔒
- ln 🔒simple math function, the backing implement is datafusion’s
ln
math function - log2 🔒simple math function, the backing implement is datafusion’s
log2
math function - log10 🔒simple math function, the backing implement is datafusion’s
log10
math function - max 🔒
- mean 🔒
- min 🔒
- next 🔒
- polyval 🔒
- pow 🔒Pow function, bind from gp’s
PowFunction
- pow_gp 🔒GrepTime’s own impl of pow function
- prev 🔒
- query 🔒get
__query__
from globals and return it TODO(discord9): this is a terrible hack, we should find a better way to get__query__
- random 🔒return a random vector range from 0 to 1 and length of len
- round 🔒simple math function, the backing implement is datafusion’s
round
math function - signum 🔒simple math function, the backing implement is datafusion’s
signum
math function - sin 🔒simple math function, the backing implement is datafusion’s
sin
math function - sqrt 🔒simple math function, the backing implement is datafusion’s
sqrt
math function - stddev 🔒
- sum 🔒
- tan 🔒simple math function, the backing implement is datafusion’s
tan
math function - variance 🔒
- vector 🔒