You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Venkata krishnan Sowrirajan (JIRA)" <ji...@apache.org> on 2015/01/07 20:46:34 UTC

[jira] [Commented] (DRILL-1757) Add support for wildcards within REPEATED_CONTAINS

    [ https://issues.apache.org/jira/browse/DRILL-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268102#comment-14268102 ] 

Venkata krishnan Sowrirajan commented on DRILL-1757:
----------------------------------------------------

Microsoft's SQL server supports contains(), similar convention is followed for repeated_contains(). Below is the documentation for contains() in MS SQL

http://msdn.microsoft.com/en-us/library/ms187787.aspx

Review request created. I have also added the patch here as an attachment.
https://reviews.apache.org/r/29666/

> Add support for wildcards within REPEATED_CONTAINS
> --------------------------------------------------
>
>                 Key: DRILL-1757
>                 URL: https://issues.apache.org/jira/browse/DRILL-1757
>             Project: Apache Drill
>          Issue Type: New Feature
>          Components: Functions - Drill
>    Affects Versions: 0.6.0
>         Environment: 0.7.0 on MacOSX, embedded mode
>            Reporter: Bob Rumsby
>            Assignee: Venkata krishnan Sowrirajan
>             Fix For: Future
>
>         Attachments: DRILL-1757.patch
>
>
> REPEATED_CONTAINS does not seem to support the % or * wildcard. If this is expected behavior (I assume not), it needs to be documented.
> 0: jdbc:drill:zk=local> select name, repeated_contains(categories, 'Doctors') from dfs.yelp.`yelp_academic_dataset_business.json` limit 1;
> +------------+------------+
> |    name    |   EXPR$1   |
> +------------+------------+
> | Eric Goldberg, MD | true       |
> +------------+------------+
> 1 row selected (0.087 seconds)
> 0: jdbc:drill:zk=local> select name, repeated_contains(categories, 'Doc%') from dfs.yelp.`yelp_academic_dataset_business.json` limit 1;
> +------------+------------+
> |    name    |   EXPR$1   |
> +------------+------------+
> | Eric Goldberg, MD | false      |
> +------------+------------+
> 1 row selected (0.093 seconds)
> 0: jdbc:drill:zk=local> select name, repeated_contains(categories, 'Doc*') from dfs.yelp.`yelp_academic_dataset_business.json` limit 1;
> +------------+------------+
> |    name    |   EXPR$1   |
> +------------+------------+
> | Eric Goldberg, MD | false      |
> +------------+------------+
> 1 row selected (0.09 seconds)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)