-
- Downloads
[SPARK-20931][SQL] ABS function support string type.
## What changes were proposed in this pull request? ABS function support string type. Hive/MySQL support this feature. Ref: https://github.com/apache/hive/blob/4ba713ccd85c3706d195aeef9476e6e6363f1c21/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFAbs.java#L93 ## How was this patch tested? unit tests Author: Yuming Wang <wgyumg@gmail.com> Closes #18153 from wangyum/SPARK-20931.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala 1 addition, 0 deletions...org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
- sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/ExpressionTypeCheckingSuite.scala 0 additions, 1 deletion...k/sql/catalyst/analysis/ExpressionTypeCheckingSuite.scala
- sql/core/src/test/resources/sql-tests/inputs/operators.sql 3 additions, 0 deletionssql/core/src/test/resources/sql-tests/inputs/operators.sql
- sql/core/src/test/resources/sql-tests/results/operators.sql.out 9 additions, 1 deletion...re/src/test/resources/sql-tests/results/operators.sql.out
Please register or sign in to comment