Repository: spark Updated Branches: refs/heads/master e290029a3 -> a0910315d
[MINOR] Format the comment of `translate` at `functions.scala` Author: Yu ISHIKAWA <yuu.ishik...@gmail.com> Closes #8265 from yu-iskw/minor-translate-comment. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a0910315 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a0910315 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a0910315 Branch: refs/heads/master Commit: a0910315dae88b033e38a1de07f39ca21f6552ad Parents: e290029 Author: Yu ISHIKAWA <yuu.ishik...@gmail.com> Authored: Mon Aug 17 23:27:11 2015 -0700 Committer: Reynold Xin <r...@databricks.com> Committed: Mon Aug 17 23:27:11 2015 -0700 ---------------------------------------------------------------------- .../scala/org/apache/spark/sql/functions.scala | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/a0910315/sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---------------------------------------------------------------------- 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 79c5f59..435e631 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 @@ -1863,14 +1863,15 @@ object functions { def substring_index(str: Column, delim: String, count: Int): Column = SubstringIndex(str.expr, lit(delim).expr, lit(count).expr) - /* Translate any character in the src by a character in replaceString. - * The characters in replaceString is corresponding to the characters in matchingString. - * The translate will happen when any character in the string matching with the character - * in the matchingString. - * - * @group string_funcs - * @since 1.5.0 - */ + /** + * Translate any character in the src by a character in replaceString. + * The characters in replaceString is corresponding to the characters in matchingString. + * The translate will happen when any character in the string matching with the character + * in the matchingString. + * + * @group string_funcs + * @since 1.5.0 + */ def translate(src: Column, matchingString: String, replaceString: String): Column = StringTranslate(src.expr, lit(matchingString).expr, lit(replaceString).expr) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org