Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/21581#discussion_r196016969
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
@@ -3077,12 +3077,16 @@ object functions {
//////////////////////////////////////////////////////////////////////////////////////////////
/**
- * Returns null if the array is null, true if the array contains
`value`, and false otherwise.
+ * Returns null if the array is null, true if the array contains `value`
or the content of
+ * `value` if it is of type Column, and false otherwise.
* @group collection_funcs
* @since 1.5.0
*/
def array_contains(column: Column, value: Any): Column = withExpr {
- ArrayContains(column.expr, Literal(value))
--- End diff --
Oh, I just found @maropu has pointed it out in
https://github.com/apache/spark/pull/21581#issuecomment-397928010.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]