[ https://issues.apache.org/jira/browse/SPARK-8231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14636004#comment-14636004 ]
Pedro Rodriguez commented on SPARK-8231: ---------------------------------------- Looks like the critical points are 1. If the array is empty, null, or the value is null, return false: https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFArrayContains.java#L102-L128 2. If there is a type mismatch, throw error 3. If comparison is not supported, throw error I got through implementing most of this and will push changes in a PR soon. I am still trying to get the codegen to compile to pass expressions tests and am not checking for type mismatch or comparable yet > complex function: array_contains > -------------------------------- > > Key: SPARK-8231 > URL: https://issues.apache.org/jira/browse/SPARK-8231 > Project: Spark > Issue Type: Sub-task > Components: SQL > Reporter: Reynold Xin > Assignee: Cheng Hao > > array_contains(Array<T>, value) > Returns TRUE if the array contains value. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org