Skip to main content

Operators Overview

Operators in the Arize Query Language typically operate on one or two values and return a result based on the values. Different operators can apply to different dimensions and constant types.

Types of Operators

  1. Numeric Operators
  2. Comparison Operators

Numeric Operators

Arithmetic operators only operate on numeric dimensions.
OperatorDescription
A + BPlus
A - BMinus
A * BMultiply
A / BDivide (integer division is cast to FLOAT)
ABS(A)Absolute value
CEILRound to nearest int
FLOORRound down to nearest int
COSCosine
SINSine
TANTangent
TANHHyperbolic tangent
LNNatural log (base e)
LOGNatural log (base e)
LOG10Log base 10
SQRTSquare root
CBRTCube root
GREATESTReturns the greatest value of the arguments. Returns null if any argument is null.
LEASTReturns the least value of the arguments. Returns null if any argument is null.

Comparison Operators

These general operators can apply to strings and numerics alike.
OperatorDescription
A = BEqual to
A <> BNot equal
A != BNot equal
A > BGreater than
A <= BGreater than or equal to
A < BLess than
A <= BLess than or equal to