Skip to content

Commit

Permalink
format to scala type
Browse files Browse the repository at this point in the history
  • Loading branch information
qiansl127 committed Jun 17, 2015
1 parent 60ccde1 commit 1df0b5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class MiscFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper {

test("md5") {
checkEvaluation(Md5(Literal("ABC")), "902fbdd2b1df0c4f70b4a5d23525e932")
checkEvaluation(Md5(Literal.create(Array[Byte](1, 2, 3, 4, 5, 6), BinaryType)), "6ac1e56bc78f031059be7be854522c4c")
checkEvaluation(Md5(Literal.create(Array[Byte](1, 2, 3, 4, 5, 6), BinaryType)),
"6ac1e56bc78f031059be7be854522c4c")
checkEvaluation(Md5(Literal.create(null, BinaryType)), null)
checkEvaluation(Md5(Literal.create(null, StringType)), null)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ object functions {

/**
* Calculates the MD5 digest and returns the value as a 32 character hex string.
*
*
* @group misc_funcs
* @since 1.5.0
*/
Expand Down

0 comments on commit 1df0b5b

Please sign in to comment.