Repository: spark Updated Branches: refs/heads/master a8877bdbb -> a04dcde8c
clarify array_contains function description ## What changes were proposed in this pull request? The description in the comment for array_contains is vague/incomplete (i.e., doesn't mention that it returns `null` if the array is `null`); this PR fixes that. ## How was this patch tested? No testing, since it merely changes a comment. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Will Manning <lwwmann...@gmail.com> Closes #17380 from lwwmanning/patch-1. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a04dcde8 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a04dcde8 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a04dcde8 Branch: refs/heads/master Commit: a04dcde8cb191e591a5f5d7a67a5371e31e7343c Parents: a8877bd Author: Will Manning <lwwmann...@gmail.com> Authored: Wed Mar 22 00:40:48 2017 +0100 Committer: Reynold Xin <r...@databricks.com> Committed: Wed Mar 22 00:40:48 2017 +0100 ---------------------------------------------------------------------- sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/a04dcde8/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 a9f089c..66bb881 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 @@ -2896,7 +2896,7 @@ object functions { ////////////////////////////////////////////////////////////////////////////////////////////// /** - * Returns true if the array contains `value` + * Returns null if the array is null, true if the array contains `value`, and false otherwise. * @group collection_funcs * @since 1.5.0 */ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org