Skip to content

Latest commit

 

History

History
96 lines (91 loc) · 1.9 KB

EXPRESSIONS.md

File metadata and controls

96 lines (91 loc) · 1.9 KB

Expressions Supported by Comet

The following Spark expressions are currently available:

  • Literals
  • Arithmetic Operators
    • UnaryMinus
    • Add/Minus/Multiply/Divide/Remainder
  • Conditional functions
    • Case When
    • If
  • Cast
  • Coalesce
  • Boolean functions
    • And
    • Or
    • Not
    • EqualTo
    • EqualNullSafe
    • GreaterThan
    • GreaterThanOrEqual
    • LessThan
    • LessThanOrEqual
    • IsNull
    • IsNotNull
    • In
  • String functions
    • Substring
    • Coalesce
    • StringSpace
    • Like
    • Contains
    • Startswith
    • Endswith
    • Ascii
    • Bit_length
    • Octet_length
    • Upper
    • Lower
    • Chr
    • Initcap
    • Trim/Btrim/Ltrim/Rtrim
    • Concat_ws
    • Repeat
    • Length
    • Reverse
    • Instr
    • Replace
    • Translate
  • Bitwise functions
    • Shiftright/Shiftleft
  • Date/Time functions
    • Year/Hour/Minute/Second
  • Math functions
    • Abs
    • Acos
    • Asin
    • Atan
    • Atan2
    • Cos
    • Exp
    • Ln
    • Log10
    • Log2
    • Pow
    • Round
    • Signum
    • Sin
    • Sqrt
    • Tan
    • Ceil
    • Floor
  • Aggregate functions
    • Count
    • Sum
    • Max
    • Min