Repository: spark Updated Branches: refs/heads/master 4021a28ac -> 12eea834d
[SPARK-11897][SQL] Add @scala.annotations.varargs to sql functions Author: Xiu Guo <[email protected]> Closes #9918 from xguo27/SPARK-11897. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/12eea834 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/12eea834 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/12eea834 Branch: refs/heads/master Commit: 12eea834d7382fbaa9c92182b682b8724049d7c1 Parents: 4021a28 Author: Xiu Guo <[email protected]> Authored: Tue Nov 24 00:07:40 2015 -0800 Committer: Reynold Xin <[email protected]> Committed: Tue Nov 24 00:07:40 2015 -0800 ---------------------------------------------------------------------- sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/12eea834/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 b27b134..6137ce3 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 @@ -689,6 +689,7 @@ object functions extends LegacyFunctions { * @group normal_funcs * @since 1.4.0 */ + @scala.annotation.varargs def array(colName: String, colNames: String*): Column = { array((colName +: colNames).map(col) : _*) } @@ -871,6 +872,7 @@ object functions extends LegacyFunctions { * @group normal_funcs * @since 1.4.0 */ + @scala.annotation.varargs def struct(colName: String, colNames: String*): Column = { struct((colName +: colNames).map(col) : _*) } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
