aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorKazuaki Ishizaki <ishizaki@jp.ibm.com>2015-12-29 10:35:23 -0800
committerYin Huai <yhuai@databricks.com>2015-12-29 10:35:23 -0800
commit8e629b10cb5167926356e2f23d3c35610aa87ffe (patch)
tree6dda5778412d9a104a5986cbd597b9083ccc13ea /sql
parentd80cc90b5545cff82cd9b340f12d01eafc9ca524 (diff)
downloadspark-8e629b10cb5167926356e2f23d3c35610aa87ffe.tar.gz
spark-8e629b10cb5167926356e2f23d3c35610aa87ffe.tar.bz2
spark-8e629b10cb5167926356e2f23d3c35610aa87ffe.zip
[SPARK-12530][BUILD] Fix build break at Spark-Master-Maven-Snapshots from #1293
Compilation error caused due to string concatenations that are not a constant Use raw string literal to avoid string concatenations https://amplab.cs.berkeley.edu/jenkins/view/Spark-Packaging/job/Spark-Master-Maven-Snapshots/1293/ Author: Kazuaki Ishizaki <ishizaki@jp.ibm.com> Closes #10488 from kiszk/SPARK-12530.
Diffstat (limited to 'sql')
-rw-r--r--sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala
index 97f276d49f..d0ec99b232 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala
@@ -57,9 +57,10 @@ case class Md5(child: Expression) extends UnaryExpression with ImplicitCastInput
* the hash length is not one of the permitted values, the return value is NULL.
*/
@ExpressionDescription(
- usage = "_FUNC_(input, bitLength) - Returns a checksum of SHA-2 family as a hex string of the " +
- "input. SHA-224, SHA-256, SHA-384, and SHA-512 are supported. Bit length of 0 is equivalent " +
- "to 256",
+ usage =
+ """_FUNC_(input, bitLength) - Returns a checksum of SHA-2 family as a hex string of the input.
+ SHA-224, SHA-256, SHA-384, and SHA-512 are supported. Bit length of 0 is equivalent to 256."""
+ ,
extended = "> SELECT _FUNC_('Spark', 0);\n " +
"'529bc3b07127ecb7e53a4dcf1991d9152c24537d919178022b2c42657f79a26b'")
case class Sha2(left: Expression, right: Expression)