@Evolving
public class GeneralScalarExpression
extends org.apache.spark.sql.internal.connector.ExpressionWithToString
Predicate
for the supported predicate expressions.
The currently supported SQL scalar expressions:
+
expr1 + expr2
-
expr1 - expr2
or - expr
*
expr1 * expr2
/
expr1 / expr2
%
expr1 % expr2
&
expr1 & expr2
|
expr1 | expr2
^
expr1 ^ expr2
~
~ expr
CASE_WHEN
CASE WHEN expr1 THEN expr2 [WHEN expr3 THEN expr4]* [ELSE expr5] END
ABS
ABS(expr)
COALESCE
COALESCE(expr1, expr2)
GREATEST
GREATEST(expr, ...)
LEAST
LEAST(expr, ...)
RAND
RAND([seed])
LOG
LOG(base, expr)
LOG10
LOG10(expr)
LOG2
LOG2(expr)
LN
LN(expr)
EXP
EXP(expr)
POWER
POWER(expr, number)
SQRT
SQRT(expr)
FLOOR
FLOOR(expr)
CEIL
CEIL(expr)
ROUND
ROUND(expr, [scale])
SIN
SIN(expr)
SINH
SINH(expr)
COS
COS(expr)
COSH
COSH(expr)
TAN
TAN(expr)
TANH
TANH(expr)
COT
COT(expr)
ASIN
ASIN(expr)
ASINH
ASINH(expr)
ACOS
ACOS(expr)
ACOSH
ACOSH(expr)
ATAN
ATAN(expr)
ATANH
ATANH(expr)
ATAN2
ATAN2(exprY, exprX)
CBRT
CBRT(expr)
DEGREES
DEGREES(expr)
RADIANS
RADIANS(expr)
SIGN
SIGN(expr)
WIDTH_BUCKET
WIDTH_BUCKET(expr)
SUBSTRING
SUBSTRING(str, pos[, len])
UPPER
UPPER(expr)
LOWER
LOWER(expr)
TRANSLATE
TRANSLATE(input, from, to)
TRIM
TRIM(src, trim)
LTRIM
LTRIM(src, trim)
RTRIM
RTRIM(src, trim)
BIT_LENGTH
BIT_LENGTH(src)
CHAR_LENGTH
CHAR_LENGTH(src)
CONCAT
CONCAT(col1, col2, ..., colN)
OVERLAY
OVERLAY(string, replace, position[, length])
DATE_ADD
DATE_ADD(start_date, num_days)
DATE_DIFF
DATE_DIFF(end_date, start_date)
TRUNC
TRUNC(date, format)
AES_ENCRYPT
AES_ENCRYPT(expr, key[, mode[, padding]])
AES_DECRYPT
AES_DECRYPT(expr, key[, mode[, padding]])
SHA1
SHA1(expr)
SHA2
SHA2(expr, bitLength)
MD5
MD5(expr)
CRC32
CRC32(expr)
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
Constructor and Description |
---|
GeneralScalarExpression(String name,
Expression[] children) |
Modifier and Type | Method and Description |
---|---|
Expression[] |
children()
Returns an array of the children of this node.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
name() |
public GeneralScalarExpression(String name, Expression[] children)
public String name()
public Expression[] children()
Expression
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object