Skip to content

Commit 8c7a949

Browse files
committed
rebase & inputTypes update
1 parent 9555e35 commit 8c7a949

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/math.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ case class Round(child: Expression, scale: Expression) extends Expression with E
543543

544544
override def inputTypes: Seq[AbstractDataType] = Seq(
545545
// rely on precedence to implicit cast String into Double
546-
TypeCollection(DoubleType, FloatType, LongType, IntegerType, ShortType, ByteType),
546+
TypeCollection(DecimalType, DoubleType, FloatType, LongType, IntegerType, ShortType, ByteType),
547547
TypeCollection(LongType, IntegerType, ShortType, ByteType))
548548

549549
override def checkInputDataTypes(): TypeCheckResult = {

0 commit comments

Comments
 (0)