diff options
author | Xiu Guo <xguo27@gmail.com> | 2015-11-24 00:07:40 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-11-24 00:07:40 -0800 |
commit | 12eea834d7382fbaa9c92182b682b8724049d7c1 (patch) | |
tree | 41fd465dd7bab0b62eced0343d8254e9d96efade /sql/core | |
parent | 4021a28ac30b65cb61cf1e041253847253a2d89f (diff) | |
download | spark-12eea834d7382fbaa9c92182b682b8724049d7c1.tar.gz spark-12eea834d7382fbaa9c92182b682b8724049d7c1.tar.bz2 spark-12eea834d7382fbaa9c92182b682b8724049d7c1.zip |
[SPARK-11897][SQL] Add @scala.annotations.varargs to sql functions
Author: Xiu Guo <xguo27@gmail.com>
Closes #9918 from xguo27/SPARK-11897.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 2 |
1 files changed, 2 insertions, 0 deletions
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 b27b1340cc..6137ce3a70 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) : _*) } |