[SPARK-9402][SQL] Remove CodegenFallback from Abs / FormatNumber.
Both expressions already implement code generation. Author: Reynold Xin <rxin@databricks.com> Closes #7723 from rxin/abs-formatnum and squashes the following commits: 31ed765 [Reynold Xin] [SPARK-9402][SQL] Remove CodegenFallback from Abs / FormatNumber.
This commit is contained in:
parent
4af622c855
commit
5a2330e546
|
@ -68,8 +68,7 @@ case class UnaryPositive(child: Expression) extends UnaryExpression with Expects
|
|||
@ExpressionDescription(
|
||||
usage = "_FUNC_(expr) - Returns the absolute value of the numeric value",
|
||||
extended = "> SELECT _FUNC_('-1');\n1")
|
||||
case class Abs(child: Expression)
|
||||
extends UnaryExpression with ExpectsInputTypes with CodegenFallback {
|
||||
case class Abs(child: Expression) extends UnaryExpression with ExpectsInputTypes {
|
||||
|
||||
override def inputTypes: Seq[AbstractDataType] = Seq(NumericType)
|
||||
|
||||
|
|
|
@ -1139,7 +1139,7 @@ case class RegExpExtract(subject: Expression, regexp: Expression, idx: Expressio
|
|||
* fractional part.
|
||||
*/
|
||||
case class FormatNumber(x: Expression, d: Expression)
|
||||
extends BinaryExpression with ExpectsInputTypes with CodegenFallback {
|
||||
extends BinaryExpression with ExpectsInputTypes {
|
||||
|
||||
override def left: Expression = x
|
||||
override def right: Expression = d
|
||||
|
|
Loading…
Reference in a new issue