class GeneralScalarExpression extends Expression with Serializable
The general representation of SQL scalar expressions, which contains the upper-cased
expression name and all the children expressions. Please also see Predicate
for the supported predicate expressions.
The currently supported SQL scalar expressions:
- Name:
+ - SQL semantic:
expr1 + expr2 - Since version: 3.3.0
- Name:
- - SQL semantic:
expr1 - expr2or- expr - Since version: 3.3.0
- Name:
* - SQL semantic:
expr1 * expr2 - Since version: 3.3.0
- Name:
/ - SQL semantic:
expr1 / expr2 - Since version: 3.3.0
- Name:
% - SQL semantic:
expr1 % expr2 - Since version: 3.3.0
- Name:
& - SQL semantic:
expr1 & expr2 - Since version: 3.3.0
- Name:
| - SQL semantic:
expr1 | expr2 - Since version: 3.3.0
- Name:
^ - SQL semantic:
expr1 ^ expr2 - Since version: 3.3.0
- Name:
~ - SQL semantic:
~ expr - Since version: 3.3.0
- Name:
CASE_WHEN - SQL semantic:
CASE WHEN expr1 THEN expr2 [WHEN expr3 THEN expr4]* [ELSE expr5] END - Since version: 3.3.0
- Name:
ABS - SQL semantic:
ABS(expr) - Since version: 3.3.0
- Name:
COALESCE - SQL semantic:
COALESCE(expr1, expr2) - Since version: 3.3.0
- Name:
LN - SQL semantic:
LN(expr) - Since version: 3.3.0
- Name:
EXP - SQL semantic:
EXP(expr) - Since version: 3.3.0
- Name:
POWER - SQL semantic:
POWER(expr, number) - Since version: 3.3.0
- Name:
SQRT - SQL semantic:
SQRT(expr) - Since version: 3.3.0
- Name:
FLOOR - SQL semantic:
FLOOR(expr) - Since version: 3.3.0
- Name:
CEIL - SQL semantic:
CEIL(expr) - Since version: 3.3.0
- Name:
WIDTH_BUCKET - SQL semantic:
WIDTH_BUCKET(expr) - Since version: 3.3.0
Note: SQL semantic conforms ANSI standard, so some expressions are not supported when ANSI off, including: add, subtract, multiply, divide, remainder, pmod.
- Annotations
- @Evolving()
- Since
3.3.0
- Alphabetic
- By Inheritance
- GeneralScalarExpression
- Serializable
- Expression
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GeneralScalarExpression(name: String, children: Array[Expression])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def children(): Array[Expression]
Returns an array of the children of this node.
Returns an array of the children of this node. Children should not change.
- Definition Classes
- GeneralScalarExpression → Expression
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def describe(): String
Format the expression as a human readable SQL-like string.
Format the expression as a human readable SQL-like string.
- Definition Classes
- Expression
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: AnyRef): Boolean
- Definition Classes
- GeneralScalarExpression → AnyRef → Any
- Annotations
- @Override()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- GeneralScalarExpression → AnyRef → Any
- Annotations
- @Override()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name(): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def references(): Array[NamedReference]
List of fields or columns that are referenced by this expression.
List of fields or columns that are referenced by this expression.
- Definition Classes
- Expression
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- GeneralScalarExpression → AnyRef → Any
- Annotations
- @Override()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()