You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/10/01 07:24:20 UTC
[jira] [Comment Edited] (SPARK-17619) To add support for pattern
matching in ArrayContains Expression.
[ https://issues.apache.org/jira/browse/SPARK-17619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15538078#comment-15538078 ]
Reynold Xin edited comment on SPARK-17619 at 10/1/16 7:23 AM:
--------------------------------------------------------------
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 higher order functions in SQL!
was (Author: rxin):
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org