-
- Downloads
[SPARK-17429][SQL] use ImplicitCastInputTypes with function Length
## What changes were proposed in this pull request? select length(11); select length(2.0); these sql will return errors, but hive is ok. this PR will support casting input types implicitly for function length the correct result is: select length(11) return 2 select length(2.0) return 3 Author: 岑玉海 <261810726@qq.com> Author: cenyuhai <cenyuhai@didichuxing.com> Closes #15014 from cenyuhai/SPARK-17429.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala 1 addition, 1 deletion...he/spark/sql/catalyst/expressions/stringExpressions.scala
- sql/core/src/test/scala/org/apache/spark/sql/StringFunctionsSuite.scala 6 additions, 4 deletions...est/scala/org/apache/spark/sql/StringFunctionsSuite.scala
Please register or sign in to comment