You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/02/04 11:26:56 UTC
[GitHub] [spark] HyukjinKwon commented on a change in pull request #27449:
[SPARK-27297][DOC][FOLLOW-UP] Improve documentation for various Scala
functions
HyukjinKwon commented on a change in pull request #27449: [SPARK-27297][DOC][FOLLOW-UP] Improve documentation for various Scala functions
URL: https://github.com/apache/spark/pull/27449#discussion_r374616292
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/functions.scala
##########
@@ -3410,6 +3410,13 @@ object functions {
/**
* Returns an array of elements after applying a transformation to each element
* in the input array.
+ * {{{
+ * df.select(transform(col("i"), x => x + 1))
+ * df.selectExpr("transform(i, x -> x + 1")
Review comment:
Seems trailing `)` missing in the expression string.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org