[ https://issues.apache.org/jira/browse/SPARK-17619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15538078#comment-15538078 ]
Reynold Xin commented on SPARK-17619: ------------------------------------- It seems really strange to add support for this specific case, when it is doable via UDF. I'm going to close this as won't fix for now until we hear a stronger argument for it. On a related topic, I think it'd be useful to have general support for array_exists that takes in a function as input, but that would require allowing lambda in SQL! > To add support for pattern matching in ArrayContains Expression. > ---------------------------------------------------------------- > > Key: SPARK-17619 > URL: https://issues.apache.org/jira/browse/SPARK-17619 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.0.0 > Reporter: Priyanka Garg > > To add support for pattern matching in ArrayContains Expression. > Array Contains currently only matches the exact value as of now... there > should be support for pattern matching as well. > For eg. arrayContains(Seq("\\d*", "\\s*"), "100") returns true. -- 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