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 2014/11/21 02:44:34 UTC
[jira] [Commented] (DRILL-1757) REPEATED_CONTAINS does not support
wildcards
[ https://issues.apache.org/jira/browse/DRILL-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220383#comment-14220383 ]
Venkata krishnan Sowrirajan commented on DRILL-1757:
----------------------------------------------------
Two more things to add here.
1. repeated_contains() tries to match word to word. Is this the expected functionality?
2. And also would repeated_contains() expected to have regex like match functionality? If not would that be nice to have something like a repeated_like() or some other function for that?
> REPEATED_CONTAINS does not support wildcards
> --------------------------------------------
>
> Key: DRILL-1757
> URL: https://issues.apache.org/jira/browse/DRILL-1757
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Affects Versions: 0.6.0
> Environment: 0.7.0 on MacOSX, embedded mode
> Reporter: Bob Rumsby
>
> 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)