Numeric Functions

42 functions covering rounding, trigonometry, logarithms, random number generation, and bitwise operations. The source column is always the implicit first input.

FunctionSyntaxParametersNotes
roundround(column, places, mode)places default 2. modeHALF_UP / UP / DOWN.
absabs(column)None.
negatenegate(column)None.
ceilceil(column)None.
floorfloor(column)None.
modmod(column, divisor)divisor default 2.
powerpower(column, exponent)exponent default 2.
sqrtsqrt(column)None.
broundbround(column, places)places default 2.Banker's rounding (round-half-to-even).
signsign(column)None.
cbrtcbrt(column)None.Cube root.
hypothypot(column, otherColumn)otherColumn — column ref.sqrt(column² + otherColumn²).
trunc_numbertrunc_number(column, places)places default 0.Truncates without rounding.
expexp(column)None.
lnln(column)None.Natural log.
loglog(column, base)base default 10.
log10log10(column)None.
pipi()None.Constant, ignores source column.
random_numberrandom_number(seed)seed optional.Uniform distribution.
randnrandn(seed)seed optional.Standard normal distribution.
greatestgreatest(column, values[])values — array of operands.
leastleast(column, values[])values — array of operands.
sin / cos / tan / asin / acos / atan / sinh / cosh / tanh / degrees / radianssin(column) etc.None.Standard trigonometric functions; radians in, radians out except degrees/radians which convert.
atan2atan2(column, otherColumn)otherColumn — column ref.
width_bucketwidth_bucket(column, minValue, maxValue, bucketCount)minValue default 0, maxValue default 100, bucketCount default 10.Assigns column value to an equal-width histogram bucket.
factorialfactorial(column)None.
isfiniteisfinite(column)None.Returns boolean; false for NaN/Infinity.
bit_and / bit_or / bit_xorbit_and(column, operand)operand — column or literal integer.
shift_leftshift_left(column, bits)bits default 1.
shift_rightshift_right(column, bits)bits default 1.