diff options
author | Davies Liu <davies@databricks.com> | 2015-07-02 15:43:02 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-07-02 15:43:02 -0700 |
commit | fc7aebd94a3c09657fc4dbded0997ed068304e0a (patch) | |
tree | fd7e7ec8c29f96641a1706000542f5a64c48f8a7 /sql/core | |
parent | 7d9cc9673e47227f58411ca1f4e647cd8233a219 (diff) | |
download | spark-fc7aebd94a3c09657fc4dbded0997ed068304e0a.tar.gz spark-fc7aebd94a3c09657fc4dbded0997ed068304e0a.tar.bz2 spark-fc7aebd94a3c09657fc4dbded0997ed068304e0a.zip |
[SPARK-8784] [SQL] Add Python API for hex and unhex
Also improve the performance of hex/unhex
Author: Davies Liu <davies@databricks.com>
Closes #7181 from davies/hex and squashes the following commits:
f032fbb [Davies Liu] Merge branch 'hex' of github.com:davies/spark into hex
49e325f [Davies Liu] Merge branch 'master' of github.com:apache/spark into hex
b31fc9a [Davies Liu] Update math.scala
25156b7 [Davies Liu] address comments and fix test
c3af78c [Davies Liu] address commments
1a24082 [Davies Liu] Add Python API for hex and unhex
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala index 4ee1fb8374..4b1353fc32 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala @@ -1061,7 +1061,7 @@ object functions { * @group math_funcs * @since 1.5.0 */ - def unhex(column: Column): Column = UnHex(column.expr) + def unhex(column: Column): Column = Unhex(column.expr) /** * Inverse of hex. Interprets each pair of characters as a hexadecimal number |